Validator on parrent issue

Hello,

I want to ask It is possible to start working on a sub task (put in particular status e.g. In Progress) only if the parrent issue is approved (issue is in some defined statuses). Is there some validator which cheks the parrent issue status?


Does anyone have solution?
Thanks

2 answers

1 accepted

0 votes
Henning Tietgens Community Champion Dec 10, 2013

You could use the Script Runner plugin and a scripted condition for the subtask workflow step. Something like this should get you started:

['Status 1', 'Status 2'].contains( issue.parentObject?.statusObject?.name )

Status 1 and Status 2 are the valid statuses.

Thank you very much! it works well.
can I in similar way check issue type of parent issue? Sometning like this doesn't work.

['Issue type'].contains( issue.parentObject?.issuetypeObject?.name )

Henning Tietgens Community Champion Dec 15, 2013

If you write issueTypeObject with an uppercase T it should work.

Jira Misc Workflow plugin (it's free depending on you Jira version) has a validator called "Parent Status validator" that could help you.

Add that validation to the "start working" transitions and that's all.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,942 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot