I have a custom field with drop down options. Based on what the user selects in this field, I would like to preset the dropdown options for another custom field. Is there a way with the JSM configuration that this can be achieved or do I need to utilize a plugin like scriptrunner and will that even support what i am trying to do.
I looked through several similar questions but was not clear to me if the answers were for other atlassian products (server, etc)
Thanks
Romy
Hi Romy,
Yes you can do this using automations. I have several setup in our jira for this exact purpose.
Your trigger needs to be setup to be when the value of the field changes. This means that if you accidently select the wrong, if you change the values the automation will re-run. and update accordingly. Example below I have with our Operational Categorization field:
You then want your condition to be If / else block.
In here, you can specify all drop down options you want to match and update secondary custom field to same value.
As you can see I have selected my custom field name which is "Operational Categorization" list type and then the cascade options:
This is the actual text: "CFNAMEHERE[Select List (cascading)]" in cascadeOption(ParentOptionID,SelectedValueID)
I have this setup in a notepad document. If I need to add a new condition to the string, I update it there and then copy and paste back into my condition box.
Keep adding OR and a new string for all that you want to match and change new field to same value.
Once you've saved your conditions, you want to add an action for Edit Issue Fields.
Extend the more options drop down and in additional fields I paste in this:
Update customfield_xxxxx to the appropriate ID of your custom field. Enter value and child value that you want to be entered.
If you are unsure what the IDs are for your custom fields, parent or selected values, they show in the URL bar when you are editing the fields like so:
Your final automation should look like this:
So If any of 3 cascade options are selected, it will change the second custom field to a specific value A. If none of those are met, it goes to the next condition if any of those 5 cascade options are selected, it will change the second custom field to specific value B and so on so forth.
Let me knows if you have any questions.
Cheers,
Suzi
Hi @Romy Meyers - Not natively. There are a couple options:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Romy Meyers Oh bugger.
Well if you ever upgrade to premium you know you can do it.
I use this kind of automation for a few different things:
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.
thank you all so much! @Suzi Firth we currently only have the standard JSM so automations are limited. We may just have to upgrade to premium if i go your route.
thanks again @Mark Segall and @Suzi Firth
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.