Forums

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

Custom field to display parent name and status on tickets

Kewl Tanooj
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!
June 24, 2018

Hi guys, I am new to JIRA and was hoping you would help me out.

I have been using Script Runner to create a custom scripted field which would display the parent issue link/name and its current status as a field when we open one of the child tickets. 

I have tried out and was able to get the parent issue key and name but I am unable to get the status of the same.

Can you let me know how to do that ? If anyone can help we with the script it would be really helpful.

 

1 answer

1 accepted

0 votes
Answer accepted
Mark Markov
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.
June 24, 2018

Hello @Kewl Tanooj

And welcome to the community.

Can you provide your script?
To get status you can use

issue.status.name
Kewl Tanooj
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!
June 24, 2018

I think get it now. I was referring to issue.getStatus().getName() in my script which wasn't obviously the right way. Still learning a lot about Scriptrunner/Groovy so have these kindergarten doubts.

Its working now. Thanks for the welcome and the assist Mark !

Erik Ekengren
Contributor
November 20, 2020

Hi Kewl!

I know this is an old thread but I have the same question. It would help a lot if you are able to share the script with me.

 

BR/

Erik

Suggest an answer

Log in or Sign up to answer