Can i get parent issue filed name using behaviour

Gokaraju gopi
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.
May 30, 2017

Can i get parent issue filed name using behaviour

I tried with following example but not able to make it

issue.getParentObject().getFieldByName("Labels") Or issue.getParentObject().getFieldById("Labels")

 

I am getting error.

1 answer

1 accepted

0 votes
Answer accepted
Daniel Yelamos [Adaptavist]
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 5, 2017

Hello Gokaraju.

You can use something like this:

issue.getParentObject().getLabels()

As stated in the Atlassian API documentation.

If this doesn't work or you need further assitance please let us know.

Cheers!

Dyelamos

Suggest an answer

Log in or Sign up to answer