Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Inability to add values to multi-select fields using automation

Bogdan Kravchenko January 26, 2022

Hello everyone, I'm trying to make automation for edit value for "Component" field.

My case is to add the extra component if the filed doesn't have it for concrete issue type.
I'm trying to use this instruction, but unfortunately I can't do it. I don't understand why?

In my case, function always edited the field and delete other components which users added before the ticket's creation.

Instruction - https://support.atlassian.com/cloud-automation/docs/edit-issue-fields-with-jira-automation/

Can you help with this?

3 answers

1 vote
Ida Giersing March 10, 2023

Following in case someone has a solution

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 26, 2022

Are you using the "add to multi-select" method instead of "set value"?

Bogdan Kravchenko January 26, 2022

I want to use "add to multi-select" but I don't have this permission, maybe you can help me find it or share screenshot? 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 26, 2022

I'm a little bit stuck on this - the screenshot I would want to give you is the one that is already in the documentation you linked to!  It shows you how to use "add to multi-select" in an automation.  Automation doesn't have any permissions on individual functions in it,  you can either create and edit automations or you can not.

Where are you stuck with following the doc?   Or are you not able to add an automation?

Bogdan Kravchenko January 26, 2022

I'm stuck on this stage.
I totally don't have this functionality. 

 

"Edit issue" action in Jira automation. The "Components" field is selected, containing "Copy from issue" and "Component 2".

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2022

What functionality don't you have?  Your automation's "action" section doesn't contain an Edit issue function at all?  Or you don't get offered something when adding an edit action?

Bogdan Kravchenko January 28, 2022

@Nic Brough -Adaptavist- 

I don't have an ability to choose the variant "Copy from issue" and additionally add "Component 2". 

Because if I just mentioned set the concrete value, It will rewrite others components which were  adding when issue was creating. 

 

Look at my screenshot in the desc and compare it with in instruction. See the differences? That I'm talking about. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2022

Does it not appear when you click the menu elipsis ... to the right of the field, where all the dynamic options are?

Bogdan Kravchenko January 28, 2022

@Nic Brough -Adaptavist- 

Kidding? There are 2 variants - "set value" and "copy from". Screenshot attached in the description. Nothing else.

Bogdan Kravchenko January 28, 2022

If it can help, this is my set automation screenshot

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2022

I'm not sure where you are stuck now - you've got the "copy from" in the ... menu, so add that to your rule, and add the component you want to add as well.

The explanation as to why you do it this way:

A multi-select field like components contains a list of options (0, 1 or many).

If you use just set "component to X", then you're overwriting the current content with a list that just contains X.  Similarly set "component to X and component to Y", you're telling it to replace the content with a list containing X and Y 

If you use "copy from" and "component to X" you're saying "read current list and add X to it"

Bogdan Kravchenko January 31, 2022

@Nic Brough -Adaptavist- 

I totally understand how it should works, but I can't set the parameter "copy from" and add "component to X".

I can choose only one variant - "copy from" or "set the value", no additional functions. 

If I add the extra function as a separate: 

Example: 
If: find my issue type 
Then: set the value - "My component" 
And: copy from current issue 

It also didn't work. 

I think you don't understand what I mean. 

If you're using the cloud jira, just try to repeat this automation. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2022

I understand what you are trying to do, it is you not understanding what the functions are doing.

What do you mean by "I can only choose one variant"?  If you just mean it only lets you add one of them to the automation, then that is exactly right - the functions can't be used at the same time, as they would try to make different and incompatible changes to the data in the field.

Bogdan Kravchenko January 31, 2022

Can you show me this ability on the latest cloud jira version? 

Снимок экрана 2022-01-31 в 18.09.38.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2022

Yes, but all I would do is give you the screenshot you have included, that's showing you what Cloud does.

Bogdan Kravchenko January 31, 2022

Again 

My screen 

 

instruction screen:

Снимок экрана 2022-01-31 в 18.09.38.png

 

See the difference? 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2022

I'm afraid your screenshot has not been uploaded right.

0 votes
Bogdan Kravchenko February 22, 2022

So guys, I finally got the real good solution which works. 

 

 

Do not checkbox the "components" field here :

Thiago Hartmann March 24, 2022

@Bogdan Kravchenko 

I guess I have the same problem as you, but your screenshots don't load. Can you explain more in details what you did?

Thanks!

Like Daniella Eguiguren likes this
Chris McCullough December 6, 2022

For anyone else running into this issue, multi-select fields give the option for "Set value" which only gives the option to select an option already in that multi-select list. Alternatively you can type in a smart value AND select something in the list.

Set Value.png

 

Otherwise the "Copy from..." option only allows you to copy the value from one field into the select field which does allow you to add to existing values but that assumes you have another field with that information. Otherwise you're copying the existing values into the field as-is.

Copy.png

 

If anyone has found a way to use automation to add new selections to a multi-select field without overwriting the existing selection that works, please share.

Like # people like this
Adrián Plaza April 27, 2023

Hi,

Here you have an answer for the Atlassian team where explain this in detail and it's working properly.

https://community.atlassian.com/t5/Jira-questions/Setting-a-multi-select-field-with-Automation/qaq-p/2053912

Regards,
Adrián.

Marc Isikoff January 10, 2024

Trying to load components in one project from a multi-select cf "tech stack" in another project. If add automation to create an issue, I can pick "components" as a target to load, but there's zero options to load or copy from other than components in the origin system.

https://confluence.atlassian.com/jirakb/how-to-copy-values-between-multiple-choice-fields-via-automation-1167704702.html is an exercise in frustration as they give examples but don't explain the values in the examples to any extent. Everyone here was scratching their heads at how that passes for a good example.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events