Hi all,
would be great if someone could put me on the right track with regard to the following scenario:
Is there is any solution with the help of JMWE? I am very curious to learn how this works.
Thank you.
Hi @Anette Noll
Jira doesn't allow the status of an issue to be changed directly. Instead, it uses transitions defined in the workflow to move issues between statuses.
Therefore, to achieve what you're trying to do, you need to use a Transition Issue(s) post function to automatically trigger the appropriate transition on the issue.
So the first thing to do is ensure you have "global transitions" in your workflow that go from any status to the A, B, and C statuses.
Then, the easiest is to create a Shared Action that contains 3 Transition Issues post function, each triggering the transition to status A, B, and C, respectively, and each with the required Conditional execution to run it only if the custom field has the appropriate value.
Then, you can:
The advantage of using a Shared Action is that if you need to modify the configuration (say, add a 4th custom field value and destination status), you will make changes in a single place only (the share action).
Thank you so much for response and your explanation.
But it seems that I make a mistake while following your points.
In the moment I create a new issue the following happens:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anette Noll
from what I can see (your screenshot is not very legible), you didn't provide a "conditional execution" script but instead a comment text. You need to add what you put as comment text in the Conditional Execution option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @David Fischer ,
thanks again for response.
It works almost completely, but I am still facing two problems:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anette Noll
Regarding the errors, you'd need to expand one of them to see the actual error details and share that here.
Regarding the status changing on the screen, it's a limitation of Jira Cloud, it updates the status "lazily".
As for the transition that fails, you need to check if it has a transition screen and a validator that prevents the transition from happening. You can try to manually trigger the Approve transition and you'll see if there's any requirement during that transition.
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.