Due to my limited proficiency in English, I might be mistaken, but I'd like to change the transition settings for an issue based on the content of a certain field, making another field mandatory for input. For instance, if the 'process' field has a value of 'SWE2-2,' I would like to ensure that you cannot transition without a value in the 'SubSystem' field.
You need to use Script Runner Behaviour.
For example: Make Comment Mandatory based on Component Change.
import com.atlassian.jira.bc.project.component.ProjectComponent
def currentComponent = underlyingIssue?.components?.toString()
def components = getFieldById(getFieldChanged())
def commentField = getFieldById("comment")
if ((components.value as String).toString() != currentComponent.toString()) {
commentField.setRequired(true)
}
else {
commentField.setRequired(false)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not possible out of the box in jira, but plugins like scriptrunner or other on atlassian marketplace would be able to do what you are looking for.
Thanks
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.