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
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 )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you write issueTypeObject with an uppercase T it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.