I have a Custom field(checkbox field) Fruits with values Apples,Oranges,Lemon.
I have another Custom field(Text field) Shop,
When Apples is checked then i need to auto populate Shop custom field with value (TechDev)
When Oranges is checked then i need to auto populate Shop custom field with value (TechArch)
This is in a view/edit screen so i am looking for script listeners to do the job
I think we need to clarify the requirement first.
"Auto populate" is usually used to mean "when a field is presented to the user for them to put data in it, fill it in for them, with a suggested value, but let them continue to put what they actually want in the field if they don't like the suggestion". There is an often unstated assumption that if you're in an edit, you do not overwrite the current value (Mostly because that would *really* annoy your users, having to re-enter the current value on every edit)
But, you mention listeners, which leads me to the second possible meaning, which is that you don't want the users to be able to over-ride the pre-populated value, you just want to set the value based on data on the issue at a certain point in the lifecycle. (A second question in this case is whether you ever want them to be able to edit the value)
So, three options:
The standard script for that is at https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-using-a-listener You will need to write an "if then" bit for checking the value of the radio button.
Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events