Forums

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

How do I get parent key in custom email of scriptunner

Pawan Ande February 20, 2019

Hi, 

I am using scriptrunner post function for custom email. 
I would want to get only the key from the issue's parent. 

I tried this following : 
$issue.parent 
looks like it gives complete list of the attributes from parent

issue.getParentObject().getKey()
I am getting some syntax er.. do I have to use any import for this to work? 

Thanks for your time to answer this.

1 answer

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 20, 2019

$issue.parent.key

ought to do the trick.

Pawan Ande February 20, 2019

Thanks @Payne  it worked

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events