I am wondering if it's possible to make a custom field appear based on the value of a previous field(not issue type). For instance, if one field has the value "A," then a field called "A ID" will appear. Similarly, if the value is "B," a field called "B ID" will appear on the screen.
It is possible through by using scriptRunner plugin.
Please do try by using that plugin.
Please do accept the answer if this helps for you.
Thanks,
Armitha.
Hi @Ayush Pathak ,
It is possible by using behaviors in the ScriptRunner plugin.
https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=cloud&tab=overview
Regards,
Geethanjali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it is on DC and if you have a behaviors Plugin use the below script
def otherFaveField = getFieldByName("Favourite Fruit (Other)")
def faveFruitField = getFieldById(getFieldChanged())
def selectedOption = faveFruitField.getValue() as String
def isOtherSelected = selectedOption == "Other"
otherFaveField.setHidden(!isOtherSelected)
otherFaveField.setRequired(isOtherSelected)
For More Info
https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-examples/select-lists-with-otherFor
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.
Hey Armitha, I have a custom drop-down field on the screen with several options. The requirement is that when I select option A, another field should appear below this custom field. Similarly, if I select option B, a different field should appear based on that value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We resolved that with Dynamic Forms for Jira. Moreover, you don't have to write any scripts for that. The whole configuration is really simple and you can set it under the specific project or globally for all projects that are using a specific scheme.
You also gain some additional abilities like Set Default Value (even description), Set Value based on condition, and required/read-only for fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.