Forums

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

Adaptavist Scriptrunner Post Message to Chat Service to include a link to issue

Somnal Oth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2019

Hi,

I'm trying to include a link to the issue within the message template (not email template) of the post function Post Message to Chat Service (Slack) by Adaptavist Scriptrunner.

 

I would like the ${issue.key} to contain the link to the issue itself. No luck trying to put something together and very limited (none) coding experience. One question I have is, can this be done without having to write a groovy script? If anyone have any suggestion that would be great. 

 

2 answers

1 accepted

1 vote
Answer accepted
Payne
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.
February 28, 2019

The format of a link to an issue is:

http[s]://<JIRA_INSTANCE>/browse/${issue.key}

so you can easily construct a hyperlink in that fashion.

Somnal Oth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2019

Wow, you are indeed a Community Champion!

 

Any suggestions on what to learn to be able to come up with that answer for other similar scenarios? I am completely lost on how you got that answer. 

0 votes
Matthew Clark
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.
November 30, 2019

This issue appears to have been marked as solved but I cannot see a solution so to help anyone who finds this post, I want to link a script that can be used to send messages to slack with a clickable link.


You can view this script on the Adaptavist Script Library here

Suggest an answer

Log in or Sign up to answer