Forums

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

Groovy script for parent issue type with status

priym
Contributor
July 27, 2023

Hi Team,

I need to add one condition in post function. If parent issue is Story and having status To Do then particular transition needs to be executed. Can anyone help me with script.

1 answer

0 votes
Tomáš Vlach
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.
July 27, 2023

Hello Priym,

did you try anything like this?

 

issue.parentObject?.status?.name == "To Do" && issue.parentObject?.issueType?.name == "Story"

 

Best Regards,

Tom

Suggest an answer

Log in or Sign up to answer