Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,039
Community Members
 
Community Events
168
Community Groups

How to create clickable link to an issue with scriptrunner

Hi,

I have a request from a user who wants to show the link of a Parent task in a sub-task.
We use Scriptrunner (Version 6.56.0). There is a scripted field called "Show parent issue in hierarchy". However, we are seeing that there you need to enter the Parent Issue type.

Many Teams will use Sub Tasks with various issue types, so I am hoping to have a catch-all.

I saw from the Adaptivitist website that I can use the following code snippet to get the Parent ticket ID. Which seems to be working fine, and it is nice and simple:

issue.getParentObject()

However, I would like to find a way to actually add a link to the Parent issue. Is this possible? I am assuming it has to be, but my Google skills are obviously not up to scratch.

1 answer

0 votes

Hi @ChristopherChilds 

 

I do not really understand the need. It's already the case.

On the top of the issue view, above Edit button you have the project picture, then project name then parent issue and finally subtask key.

All information is clickable.

 

Regards

Hi,

The team wanted a clickable link direct from the Board in the Issue Details View.
The plan was to scrpit the field. In the end I found a solution to make it linkable. But it seems that one can not add a scripted field to the Issue Details View.
https://jira.atlassian.com/browse/JSWSERVER-10191

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.11
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,050 views 18 32
Read article

Atlassian Community Events