workflow condition on issue resolution trying to resolve issue

Hello! I'm trying to understand the workflow usage in this particular case:

For example, I'm trying to resolve an issue(though actually the case is more general and applies to any transition with field edit), and there is a screen associated with this transition where I can choose which resolution I want to pick

Now, before this transition Resolution was Unresolved. Is it possible to pose a Condition or Validation on this transition which checks what I entered in the Screen associated?

Because now, when I require that Resolution be non-empty, meaning that I should fill it in the Screen, the very transition is unavailable because, apparently, workflow checks the field condition before I attempt to make a transition

More general, is it possible to check something one enters on the Screen associated with a transition which allows/disallows consequent execution of that transition?

1 answer

1 accepted

Hi,

I think what you are looking for is the workflow validators. Validators check the values entered in the screen and some more conditions if required and allow/disallow transition based on the result.

If you put the condition for the resolution to be non-empty, it will not allow the transition coz, the resolution is Unresolved.

You can put a validator to check if the resolution is non-empty and it will do the trick.

JIRA Suite utilities and Script runner plugin provides validators to do this.

Vijay

Indeed - conditions are there to stop a user starting a transition, whereas validators are there to prevent bad data being logged - they block the transition after the user has entered data.

However, in the case of Resolution, you don't actually need anything.

If you put the resolution field on a transition screen, it gets filled in and saved - you don't need to check that it's been filled because it always is. (Resolution is the only off-the-shelf field that does this though)

Thank you, Vijay and Nic. Now I know the difference. But the set of options is drastically different. Can you hint me as to where I can find "field is equal to somevalue" validator?

The standard validators are quite limited in my opinion, and the first thing I usually do with a new Jira site is install the Jira Suite Utilities which adds a number of validators (and other stuff). It's free and can be used OnDemand. If that doesn't do what you need, check the marketplace for other plugins, there's quite a lot of very useful validators out there.

OK, thanks, I found Workflow Enhancer, which allows me to check field value, but is it possible to check whether the code was commited to repository in validator?

I've not worked with a validator that does that, so I don't have anything to point you at. I do know it's possible, because I did it for a client once (a very old version of Jira and a very clunky method, but it did work)

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

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

99 views 0 5
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