Forums

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

How to add a button or a link to a jira Ticket?

Jack October 24, 2022

Hi,

I need a button or link in each Jira ticket where the issue key of the ticket is passed to the link and then the user can click on the link to be redirected to the given link's website. 

To better understand my needs, I'll give an example:

1- For example, we have the following Jira issue with the key: ABC123
2- We have a web app like this: www.example.com/jira/issueKey/{issueKey}
3- We want to have in Jira issue "ABC123" as follows: www.example.com/jira/issueKey/ABC123 which should be generated automatically and when user click on it then they should be redirected to this web app www will. example.com/jira/issueKey/ABC123.

any ideas, how can I achieve that ? 

Thanks

 

1 answer

0 votes
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2022

Hi, @Firas. Welcome to the Atlassian Community!

You will need an app to achieve that. I have created something similar using ScriptRunner for Jira, but you can also build that using other apps. Which apps do you currently have?

Jack October 25, 2022

Hi @Ivan Lima,

 

i dont really know which apps i habe to use with my jira instance. Is Scriptrunner the only possibilty or can we achieve this with webhooks ?

 

what would you suggest? 

thank you

Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2022

Although you won't get a button or link where users can "click," a webhook should do the job, assuming an event-based behaviour would work for you. For example, you can use ${issue.key} as a variable in the URL and the issue-created event. You need Jira admin global permission to set this up, which also gives you access to check the apps you're instance currently has installed.

Like Jack likes this

Suggest an answer

Log in or Sign up to answer