I was just wondering if anyone knew if they could stop a ticket from being resolved with an organisation attached to it or request set against them.
If this can be done please could you share the knowledge?
I have tried adding a validator to the workflow and have added that if the fields "Organisation or Request Type" are not present then it shouldn't resolve, but for some reason, it goes ahead and resolves the ticket anyways?
Welcome to Atlassian Community!
I have configured the required field validator in the transitions that go to the "Done" status in my test workflow and the validator has properly blocked me from resolve the issue before setting the Organization field, as you can see in the screenshot below:
Please, allow me to describe the steps I took:
1 - Navigate to your project > Project Settings > Workflows > Click to edit the workflow respective to the issue types you want
2 - On diagram mode, click in the transitions that go to the status "Done" > Validators > Add Validator
3 - Click to add the required field validator > Make sure you selected the fields you want and clicked in the "Add" button, making sure the fields are displayed in the required fields column:
4 - Save your workflow draft
If the validator is still not working after performing the steps above, please check the following:
- Check if the fields you are setting in your workflow are currently added to the context of your project and issue type under project settings > Fields.
- Check if you selected the correct workflow related to the issue type you are performing the test
- Check if you selected the correct transitions in your workflow
- Check if you have published your workflow draft once you added the validator
Let us know if this information helps.
Are you using Jira Cloud?
The steps above are only related to Jira Cloud, as it's flagged in the question.
If you are using Jira Server, you will need the add-on JSU Automation Suite for Jira Workflows to make that happen. For more details, you can check the article below:
If you are using Jira Cloud, can you please provide us with the validators that are displayed to you?
I'm afraid Jira Server/Data Center does not have the functionality to require a field to be filled in a specific transition as you need without using the mentioned plugin. We even had a feature request to include JSU functionalities as an inbuilt feature of Jira, however, it was decided by the responsible vendor to commercialize it as a separated app:
As the "organizations" field is locked, you can not set it as required using the field configuration as well, however, this same approach can work with some other fields.
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