I've created a new workflow and added validations before an issue transitions to the next status. But I can't seem to figure out how to add those same validations to a ticket when it's selected from the backlog and moved into an active sprint. Any ideas? Thanks all, always appreciate the help as I'm a new administrator !!
Ah yes, that's a good way of thinking about it being an edit vs a transition!! I wanted to have three fields validated before an issue can be moved into an active sprint -
Definition of Ready (tick box custom field)
Stakeholders (custom field, predictive search to find and select other Jira users)
Story Points (custom field for numeric value
Let me know if you need any more information. Thanks so much!
Thanks for your answer, Emma.
Digging a little bit deeper on this, I've found out that you can do it using a groovy script from ScriptRunner, however, there are some ways to edit issues that would break the trigger to the validators. E.g: Bulk edit issues or try to edit it directly from a project Board.
That been said, the most practical and efficient way to achieve your need would be performing the steps below:
- Configure a new transition in your workflow that your issues should be taken to when moved to a sprint - Preferably, use a loop transition to the same status
- Configure all your validators on this transition
- Install Automation Lite for JIRA plugin
- Configure the following automation rule to transition your issue when the Sprint is edited:
- Optional Step - You can hide the new transition from other users, allowing only the automation to perform the transition when the sprint is changed. Let e know if you need help with this
Let me know if you need any further help to do it.
Can you please provide us what kind of validators you are trying to configure?
As you may know, Validators can only be configured on workflow transitions, however, you are not performing a transition when moving an issue to a Sprint, but only editing the Sprint field.
That been said, you will need a plugin to automatically change the status of the issue when the Sprint field is changed to trigger the validators as you need.
I think Automation for JIRA plugin would work to achieve this scenario, however, we can maybe suggest better options once you provide us what kind of validators you are planning to use.
We will be waiting for it! :)
Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...
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