I have 2 workflows with the same transitions (Ready for Work) and statuses (In Progress). Each workflow has a post function.
Looking at the logs, I noticed that when I go through the workflow of one, both scripts are run.
Do I have to create a new status for one of the workflows when I need to run a script?
The ScriptRunner script is in multiple workflow post functions. the function iterates a field that has a list of projects and creates an Epic in each of those projects.
Below is a screenshot of the list of ScriptRunner Post functions. You can see in the history that the scripts all ran at the same time. Each one is in a different project and different workflows. It appears if I use the Ready for Development (81) transition in multiple places, when it is run for 1 workflow it is run for all workflows with Ready for Development transition.
Also - I am working in the cloud version.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events