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.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.