Notifying user that condition not met for transtion

Hi! 

Is there anyone out there who knows a simple solution for the following. 

Main issue has subtasks, if conditions are not met(sub-tasks have to be closed) transition button is not displayed. 

What we would like to achieve is to have the button visible, but if users clicks on it a error message is displayed with a notification that they need to close/complete sub-tasks before transiting to next status.

 smile 

Ivar

3 answers

1 accepted

1 vote

You can write a workflow validator plugin to check for open subtasks. A validator shows the worklfow button but throws the error if the validation fails. Looks like that is what you are after!

1 vote
Joe Pitt Community Champion Jan 07, 2015

You're looking at modifying the basic JIRA code. The absence of the transaction tells the users the conditions aren't met. They would have to look at the issue to see the button and get the error. This is a training issue. Trying to fix it with a code hack will only bring you grief in the long run.

1 vote
Peter Bengov Community Champion Jan 07, 2015

Hey Ivar,

if we try to simplify this then look at issues a bit differently: Conditions are there to prevent clutter and non relevant transitions. 

If you want to display a message of missing component/fields/sub-tasks then this should be done as a validator, which comes with this ability on notifying users.

I know this might sound a bit strange, but this is a preferred solution to your problem.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

158 views 5 9
Read article

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