How do i not allow a ticket to move to the pending promotion status if the field version is empty in Jira cloud. And i want to show a popup the reason why it can't move to Pending promotion.
Thanks
Hi, @Glen Brannigan
I'm not entirely sure what you mean by "Pending Promotion," but if it's a status in your workflow, there are two main ways to restrict transitions to this status:
Add a condition to the transition in the workflow that checks whether a required field is filled. If the field is empty, the transition will be hidden.
Add a validator to the transition to ensure the required field has a value, and pair it with a screen that includes the field as required. This way, if someone tries to perform the transition without filling in the field, they’ll see an error message.
Hello @Glen Brannigan
What type of project are you using? Get that information from the Type column on the View All Projects page under the Projects menu.
What type of field is "version"? Is that a custom field you created or a default field provided by Atlassian? Can you show us a screen image showing the configuration information for that field?
Without the information about the project Type, the answer is this is something that is generally done by customizing the workflow transition(s) into the specified status. If you add a "validator" then the user can attempt the transition and will get a message if the "validator" is not met. The terminology and the available fields differ between Team Managed and Company Managed projects.
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.
So then is it the field labeled "Fix Version/s"?
You can add a Field Required Validator to the workflow and include a message that will display when the validation fails.
When added without also using a transition screen the user will get a popup like this:
For more information on customizing workflows, refer to the documentation found here:
https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Glen Brannigan! 👋
One way to handle this is by using a workflow validator on the transition to the "Pending Promotion" status. You can set up a field required validator to check that the Fix Version field (or any field you want) is populated before allowing the transition.
To guide users, you can also add a transition screen showing the required fields, so they know what needs to be filled in during the transition.
Hope this helps! ✨
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.