Hello!
I've been searching endlessly on how to incorporate validated post functions into a transition, but haven't found anything in the forums that has applied to our situation.
What we would like to do is have a transition that:
I know how to set a conditional based on the status a ticket is coming from using Groovy:
issue.status.statusCategory == "xxx"
However, I'm having trouble with the other aspects mentioned above (field update, required input).
You will need a plugin to enable you to do that.
To do it exactly as described, you'll need a validator and a post function. You'll also need to decide whch route to take through the contradictions of "set a resolution" and "make it mandatory for the user" - you can do one or the other not both.
There's no way to do this using a custom Groovy script? We have access to the Jira Misc Workflow Extensions (JMWE) app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Nic said, you can't just hide fields from transition screens, that's not how Jira works.
The solution is to use two Global transitions, one with a screen that shows the Resolution field, and one with a screen that doesn't show it but instead includes a Set Field Value post-function to set the Resolution. And you'll use a Scripted (Groovy) Condition on each to hide the transition that doesn't apply, based on the status category.
However, it is generally not good practice to use global transitions. Instead, you should design your workflow using regular transitions between statuses, so that you have full control over which transition is available in which status, and so you can also display the workflow to users.
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.