Can Jira Issue validate fields within a sub-task

My current situation is I have a custom workflow which include many statuses.

For each Jira issue, has some sub-tasks.

I want a validation mechanism, which can prevent the Issue going to the next statuses untill some certain custom fields have been validated. But the custom fields are not belong to Jira issue, they are belong to sub-tasks.

e.g. 1. There are statuses: A, B, C, D, etc for the workflow;

2. There is an issue X who has Y and Z as sub-task;

3. Sub-task Y has a and b as custom fields;

4. Sub-task Z has c and d as custom fields;

5. The issue X won't go from status A to status B until custom fields a, b, c and d are validated.

Anyone knows are there any good plugins or method I can do like this.

NB: I know there is a plugin called Jira Suite plugin which is powerful, I can do some validation on transition, but the fields validation are only for issues, not include sub-task custom fields.

Thanks.

3 answers

This widget could not be displayed.

I think, as of now there is no way to achieve this.

This widget could not be displayed.

No, there's certainly nothing in the core of Jira which does this. (Barring the "block transition if any sub-tasks are in selected status").

I'm not aware of a plugin which will scan sub-task information either. I think you'll have to write something. I'd actually start with the code for the "subtask blocking condition" as that contains a good chunk of what you need, and all you'd need to do is modify it to work off custom fields instead of the status of the sub-tasks.

This widget could not be displayed.

Start with marvelours ScriptRunner plugin from Jamie Echlin, and prototype your ScriptValidator in Groovy.

Something like

import com.opensymphony.workflow.InvalidInputException

if (!issue.subTaskObjects*.summary.contains("Specific subtask")) { 
	invalidInputException = new InvalidInputException("No specific subtask!")
}

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

578 views 25 15
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