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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Inability to add values to multi-select fields using automation

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

Following in case someone has a solution

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 26, 2022

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

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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 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?

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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 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?

@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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 28, 2022

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

@Nic Brough -Adaptavist- 

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

If it can help, this is my set automation screenshot

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 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"

@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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 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.

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

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 31, 2022

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

Again 

My screen 

 

instruction screen:

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

 

See the difference? 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 31, 2022

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

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

 

 

Do not checkbox the "components" field here :

@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

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events