I’m working with Jira and need to set up a workflow rule where the Fix Version field becomes required whenever someone resolves an issue with “Fixed” as the resolution.
Right now team members can close tickets without specifying which version the fix will be included in. This creates problems for our release planning since we lose track of what fixes go into which release.
Is there a built-in way to configure this behavior in Jira? I want to prevent users from completing the resolution process unless they select at least one fix version from the dropdown.
Any suggestions on how to implement this validation would be helpful. Thanks!
You can achieve this by using workflow validators in Jira. Navigate to your workflow configuration and add a validator to the transition that resolves issues. Specifically, implement the ‘Field Required Validator’ to make the Fix Version field mandatory during that transition. I found this method effective in our project, as it prevents users from completing the resolution without selecting a version. Additionally, you can customize the error message to clarify the requirement. A helpful tip is to create a default version, such as ‘Next Release,’ for situations where the exact version isn’t known, ensuring smooth workflow without losing track of fixes.
Had this exact problem a few months back - workflow post functions solved it perfectly. I added a condition to the transition that checks if resolution = ‘Fixed’ and validates that Fix Version isn’t empty. Best part? It completely blocks the transition if the field’s blank, so users have to go back and fill it out. Couple things to watch for: definitely give your team a heads up before you deploy this. People get confused when a field that used to be optional suddenly becomes required. Also, lock down permissions on fix versions so only the right people can modify them - saves you from weird assignments later.
if ur using ScriptRunner, try a groovy script to validate the fix version field while transitioning. it’s super flexible compared to built-in validators, allows for custom logic based on different resolutions or issue types. just a heads up, u will need a ScriptRunner license tho, but its def worth it if u need advanced rules.