validating or checking for a Confluence Content/Web link in a ticket

Marcel Rossouw
Contributor
October 16, 2024

I'm trying to utilise jira automation rules to validate if a web url or confluence content url is present. This is in an attempt to check that documentation is linked to an issue. This is a team managed project so I can't target validation in the workflow but can react to the workflow by using an automation rule. I can't seem to be able to target remoteissuelink via the changelog (smart value) nor via JQL (can't). Is there any other way to validate this other than having links in the description field? It kind of defeats the purpose of leveraging the way Jira links things on a ticket....
Screenshot 2024-10-16 at 12.04.21.png

1 answer

0 votes
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2024

Hi @Marcel Rossouw 

You can do this by using a Web Request in your automation rule. 
This one will do nicely. Remember to add Authorization before finalizing the rule.

The API will return all remote links to the issue (not issues in the same instance that are linked to it). So it returns web links or confluence links. 

Knowing that, you can just check if there is anything in the body of the response. 
If you want to know whether a weblink or a confluence page is linked, you can check the type of the application in the body of the response

  • For confluence links that will be "com.Atlassian.confluence"
  • for web links the application will be empty

 

The rule could look something like this: 

Screenshot 2024-10-18 234122.png

 

Hope this helps! 

Please let us know if it worked or you need more help! 

- Tessa

Suggest an answer

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

Atlassian Community Events