Condition Existence of a Confluence Link

We have requirements for there to be documentation in confluence of change requests. Is it possible to have a workflow condition to verify the existence of a confluence link?

2 answers

Hi Todd,

In order to help you, we need to understand what do you mean by Confluence Link, is to check if there's a Confluence Application Link between JIRA and Confluence or verify if a page exists?

Regards,

Rafael

This is to verify the existence of a link to a confluence page.  

Yes Todd, but specifically what kind of link? How do you know if a link exists? does it give a 404 when it doesn't?

We have the requirement for certain issue types that documentation be created in confluence and linked in the issue.  We want to verify that a link to a confluence page exists in the issue. 

1 vote

To just check for the presence of an app link you can use:

import com.atlassian.applinks.api.ApplicationLink
import com.atlassian.applinks.api.ApplicationLinkService
import com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType
import com.atlassian.sal.api.component.ComponentLocator

def applicationLinkService = ComponentLocator.getComponent(ApplicationLinkService)
final ApplicationLink conflLink = applicationLinkService.getPrimaryApplicationLink(ConfluenceApplicationType)
conflLink as boolean

Jamie,

We have the requirement for certain issue types that documentation be created in confluence and linked in the issue.  We want to verify that a link to a confluence page exists in the issue. 

No I have not.  There is built in the script to verify the existence of a duplicate issue link from script runner: issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains.('Duplicate').  How can I use something similar to verify that an issue link exists at all?

Rafael,

There is built in the script to verify the existence of a duplicate issue link from script runner: issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains.('Duplicate').  How can I use something similar to verify that a link to an an issue or a confluence page exists at all?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,304 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot