I want to make sure that each issue is given a meaningful resolution when moved to done. I've created a screen ("Get Resolution") and attached it to each workflow transition that move to a "done" state. The field Resolution is a required field. So far so good.
My problem is that, on the transition screen, the Resolution field defaults to the first option (for example "code fixed"). Most people will simply save that value, I want the screen to force them to make an active choice rather than passive.
I tried using the post-validation that the field had been changed, but this always passes (I believe because it changes from empty to whatever they pick, including the default). So I have changed the first resolution to "Please select" so that it defaults to that and I will at least be able to find issues where they did not make a "real" choice and fix them after the event.
I was hoping that I could validate Resolution is not "Please Select" but I cant see a way to do that. I also looked (unsucessfully) for properties to let me set the value pre-transition which would force the "has changed" validator to activate.
The only thing I can think of is two transitions, one to actively set the resolution to "Please Select" and then the other, with the screen, to validate that the user changed it. However unless I can trigger the second transition from the first then I'm I'm relying on the user to pick two transitions in a row, which is not a great interface, I can see how I could make that trigger happen automatically?
I'm out of ideas, anyone inspired?
Check that you do not have a default value for your resolution field.
Jira settings > Issues > Resolutions
at the top you will have a link to "Clear defaults"
Ah its the simple things in life! I just didn't see that you could clear that default. I've now been able to remove my workarond "Please select" option and guess what - Jira makes it say "Please select". Perfect! Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is rather non-obvious. glad it worked for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community..!!!
Technically, it's not "mandatory" in Jira speak. The field is optional, otherwise you'd have to have it on the create screen, which would be pretty useless. Your problem is that when you do place the field on a screen, it does not have an "empty" option, and defaults to the first value in the list, so you always end up setting it to something.
To "fix" this, you need to do two things:
Note also that point 1 will let people mess up your resolutions in quick-edit if you place the field on the "edit" screens, so the standard advice to "never put resolution on an edit screen" still stands.
And more or less is that we need to educate them to follow few things...!!! Resolution needs to be set, which would help us to understand the overview of an issue. I hope this is the best way rather making things difficult for ourself.
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.