I have two "ending" states: Done and Rejected. I have several Resolutions, including Done, Won't Do, Duplicate, and Can't Reproduce.
When an issue is transitioned to Done, I have a Post-Function that will set the Resolution to Done.
When an issue is transitioned to Rejected, I open the Resolve Issue Screen where the user, among other things, can select a Resolution.
Is there a way to ensure that a user cannot transition to Rejected and then select a Resolution of Done? I only want them to be able to select Won't Do, Duplicate or Can't Reproduce. I looked at the transition's Validators but none of them seemed to match what I'm looking for.
I suggest you always use the jira.field.resolution.include option, not the exclude one. That way if you need to add another resolution not applicable to the transition you won't need to update all the transitions you don't want it to apply to. From my experience once you determine the resolutions you want for a particular issue type and transition they seldom change but new issue types with associated resolutions will grow.
I don't know where to find jira.field.resolution.include. I'm using Jira Cloud, and looking at this page https://confluence.atlassian.com/adminjiracloud/workflow-properties-776636709.html but I can't see where I can edit jira.field.resolution.include and I'm also not sure what value to set there. @Alexey Matveev said "1, 2, 3" which I guess are resolution ID numbers? If so, where do I get them from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You should restrict resolutions on the status level. That would be out of the box. Just add status property
jira.field.resolution.include =1,2,3
You can read more here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a minor correction: What @Alexey Matveev is suggesting is a Transition Property, not a state property. Make sure you assign the property to the action, not state.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for correction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What if I add another resolution that is acceptable when transitioning to Done? Basically I want to say:
If transitioning to Done, here are your available Resolutions (Work Completed, Fixed Externally, ...)
If transitioning to Rejected, here are your available Resolutions (Won't Do, Duplicate, ...)
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That works fine - You would have two actions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand what you're referring to. What do you mean by "you would have two actions"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show us your workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.