Forums

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

Automatically "Creating a link to a Confluence page"

marcel.schmid June 27, 2022

Hi Community, 

 

I am aware of the built in functionality to create reciprocal links between Jira and Confluence. To be exact, I mean the way, that is described under https://confluence.atlassian.com/jirasoftwareserver/linking-issues-939938934.html#Linkingissues-CreatingalinktoaConfluencepage

Unfortunately, many of my colleagues just post the Link of the Confluence Site to the Description or Comment Field of a Jira Issue instead of correctly linking it. When handled like this, there is no reciprokal link between Jira and Confluence available, it is more of a one way ticket from jira to confluence. I am aware, that this might be a problem, that can be solved with a training of my colleagues, but i wanted to know if there is an automated way to handle this. Maybe a third party app or a Behavior that can be written with Scriptrunner.... Something like

"When someone posts a link to the Description/ Comment Field, that starts with "confluence.", automatically set the Jira links field( i suppose it is issuesWithRemoteLinksByGlobalID) for this Link"

 

Any Ideas or advice? 

 

Best Regards

1 answer

0 votes
Craig Nodwell
Community Champion
June 27, 2022

Hi @marcel.schmid scriptrunner would be the way to achieve this.  You can easily build inward and outward links based off of inputs during a create or edit.  Linking has formatting specifically for "Confluence" links under the hood that a good script in Scriptrunner could manipulate and assign to the issue.  I would suggest this as a path.

marcel.schmid June 27, 2022

Hi @Craig Nodwell ,

 

I am relatively new to Scriptrunner and possible scripts for jira. Do you might have a good jump off point or a demo project for the handling of inward and outward links for me? 

Craig Nodwell
Community Champion
June 27, 2022

The Library Marcel :) it's got a lot of great resources.
library.adaptavist.com 

You'll find some examples and a good read here as well.
Scriptrunner Features 

Like marcel.schmid likes this

Suggest an answer

Log in or Sign up to answer