Forums

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

Automatic links by custom pattern

Andreas Stange June 27, 2022

Our Jira automatically displays links to issues by just using an issue's name.
For example, SE-1234 is shown as link to https://jira.mycompany.com/browse/SE-1234

I would like to have a similar feature for custom external links.

For example, I want to configure a RegEx pattern that creates links to specific commits in our repo hosting tool (note that we do not use BitBucket to host our repos).

Is there a feature in Jira to configure this? Are there plugins that can do this?

Example:
RegEx-Pattern: rSE[0-9a-fA-F]{40}
This should match "rSE" followed by the Git commit hash (40 hex digits).

The link target could be http://repos.mycompany.com/view/{matched-reg-ex}

When using rSE921103db8259eb9de72f42db8b939895f5651489 in a Jira description or comment, then Jira should show this as link to http://repos.mycompany.com/view/rSE921103db8259eb9de72f42db8b939895f5651489

1 answer

1 accepted

3 votes
Answer accepted
Craig Nodwell
Community Champion
June 27, 2022

Hi @Andreas Stange welcome to the community.

Natively Jira won't do this.
Plugins to achieve this your best bet would be Scriptrunner.
Have you looked into creating a DVCS connection to your version control system?  Once this is completed the "Development" panel in Jira will show and be populated with "Commits" "Branches" & "Merge Requests" for any of those activates that have the Jira ID in their commit message, branch name, or merge request title.
Here's a link to a page describing this.
integrating-with-development-tools-using-dvcs 

Andreas Stange June 27, 2022

Thanks! ScriptRunner seems promising.

Suggest an answer

Log in or Sign up to answer