Hi
In on of the transition screen , two fields are there "resolution "field with values done , reject, duplicate
And other field fix version
I need to make the fix version field mandatory only if the resolution is selected as done .
If the resolution is selected as rejected or anything other than done ..then fix version should be optional .
How can I do this
Hi @Aswathi D
Do you have any app ? I would say that it's not possible using only JIRA. Scriptrunner or JSU or Jira Workflow Enhancer may be the solution here but there is many of them that may fulfil your requirements, let me know what you have.
It will be a validator.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would use a Simple Script validator for that.
https://library.adaptavist.com/entity/duplicate-check?tab=dataCenter
If you adapt the example in the documentation, it should look like that:
issue.resolution.name != "Done" || issue.fixVersions
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
None of them, you have to go to the transition where the screen is. Then add a validator on it, select simple scripted validator.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The described case can be addressed using any Jira expression-based validator available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app.
The expression you need is as follows:
issue.resolution != null && issue.resolution.name == 'Done'
? issue.fixVersions.length > 0
: true
I hope it will help.
Cheers
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.