Hello team,
I have a few single select drop-down custom fields, which I would like to populate based on a description.
So, for example, if the description contains, [ABCD], I would like to populate the custo field A with ABCD and so forth.
What is the best way to do it?
Hello @Andre Menezes!
I guess you could do it something like this:
When issue created
IF Field Description contains "ABCD"
THEN Edit issue
* Choose field ABCD Select list
* Set value of field to ABCD
ELSE IF Field Description contains EFG
THEN .... set field EFG
First things first: as you are trying to parse several fields out of your Description, I recommend experimentation to solve and validate this scenario...
For your multiple-select option field, your parsing will need to create JSON, dynamically, to select the field values: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-select-custom-field
That may be done using conditional logic, and perhaps even created variables.
To get you started on creating your rule, please refer to these documentation and example sources:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andre Menezes ,
if you don't want to set up Jira Automations, you could take a look at some Marketplace apps which lead you to the same result (and need less configuration).
Templating.app for example allows you to modify the Create Screen in various ways, including populating (multi-)select fields based on conditions.
Here's how the configuration looks like for a rule "If description contains "customer", then select option 1 & 2 for the multi select field."
You can add multiple conditions and modifications for different projects and issue types. As you can see, this is really handy.
If you have any questions, please reach out. I'm the Product Manager of Templating.app, so I'm happy to help 💜
Cheers,
Sarah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect. Thanks, @Tobias H , how about a multi-select field? Do you have any ideas? Or this same approach should work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works the same, but you wouldn't be able to do multiple selections at the same time without writing if-else statements for all the scenarios, as the edit issue uses "Set" instead of "Add".
It could perhaps be possible with using JSON to do Value add instead, but that is not my forte so I am not sure.
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.