It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do you allow a parent CR to not progress to the next transition until all CR-Subtasks have been closed? I need the button to be visible but throw an error message when clicked.

Kristina Butler Feb 09, 2013

How do you allow a parent CR to not progress to the next transition until all CR-Subtasks have been closed? I need the button to be visible but throw an error message when clicked.

1 answer

0 votes
Nic Brough [Adaptavist] Community Leader Feb 09, 2013

There's two questions here, sort of.

1. To prevent a parent from moving on while it's got open subtasks, the standard approach is to use the "subtask status blocking" condition. That lets you set conditions on a workflow like "only show this transition if all the subtasks are in status X, Y or Z"

2. Answer 1 above works, but does not meet your "visible/error message" criteria. In Jira, a "condition" stops a user from seeing the option to try a transition. What you're asking for is a "validator" - these don't stop a user seeing or starting a transition, but stops them completing it if the data is wrong.

I've not seen a plugin that will provide a validator that will look at the subtask-status, so I think you might need to do a bit of coding. Of course, you can "borrow" the code from the condition, it'll be almost identical.

Note - I use the condition, and have never really needed to look for a validator style way to do it, so I don't want to tell you there is nothing out there, just that I've never looked.

Kristina Butler Feb 09, 2013

Thank you. Would you be able to tell me how I can view the code for the blocking condition?

Nic Brough [Adaptavist] Community Leader Feb 09, 2013

Ah, the one I use is in Jira off-the-shelf, so it's part of the core code, and that's closed so I can't share it.

If you've got a commercial licence, you can download the source for Jira from your my.atlassian account and find it in there. Shouldn't be hard to extract the condition and convert to a validator.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

124 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you