Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to Copy Confluence & Web Links to Appropriate Section

Josh Barron
Contributor
September 24, 2024

Hello, Automation gurus:

I'm looking for a way to populate the "Confluence Content" and "Web Links" section of the Jira issue when a URL is found in the created/edited description or in the created/edited comment.  Of course, existing links would not be duplicated.

Step 1: Finding the content (no problem)

I can Identify web links easily, and confluence content looks something like:

{{issue.description.match("(https://.*\.atlassian\.net/wiki/.*)")}}

Step 2: Updating the issue (please help)

  1. Unfortunately, the only action I see in Jira automation is about issue linking.
  2. Further, 'edit issue' doesn't appear to allow adding items to the 'Confluence Content' section.

I'm sure it's something simple that I'm overlooking.  Then again, even the AI Rule builder tries to create a linked issue to the URL ... which is close but ... not quite.

Note: I recognizing this probably becomes two separate automations (one for web general links and one particularly for confluence).  However, for simplicity I'm only posting it here as one consolidated question.

Any help or direction you can provide would be much appreciated.

1 answer

0 votes
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 29, 2024

Hi @Josh Barron ,

Unfortunately there is no direct action to perform the action you need.

Although you can use the Web Request action to fulfill the requirement. You can hit this API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-rest-api-3-issue-issueidorkey-remotelink-post, do keep in mind to check the "Delay execution of subsequent rule actions until we've received a response for this web request" else you may proceed to the next step while the previous one wasn't complete.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events