Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Automation Add a component when any of a specified list of labels are added

Hello, when a user adds a label from a specific set of labels, either at creation or when editing, then I want a specific component to be added. I dont want to remove any existing components.

I added how I have the automation rule set up, but it is not even registering on the log when I change a label.  ThanksJira Rule.JPG

2 answers

2 accepted

2 votes
Answer accepted

For the issues where you are testing this, do those issues have any Component value already or is the field empty?

Your condition on the Component field will apply only if the Component field has at least one value. If you want it to apply to issues that also have no Component values at all you will need the JQL to be this:

component !=CS or component is empty

the component field is sometimes empty and sometimes not.  Ill updated the search to look like this now:

Jira Rule2.JPG

But I am getting this error: SUN-5232 (Field 'components' cannot appear in both 'fields' and 'update')

That error is because you have both selected the field above and used it in JSON below.  Please try to deselected in the list above, or use the method I noted to add new values after copying the existing ones (so you would remove the JSON.)

Like Trudy Claspill likes this

 I deleted the action out and rebuilt it and it now works.  Thanks

Thanks Trudy, really helpful, got it working with you and Bill's inputs. I really appreciate you all

Like Bill Sheboy likes this
0 votes
Answer accepted

Hi @Larkin Rogers 

Have you tried the method where you first copy from the issue and then add the new value?  Please look here for details:

https://support.atlassian.com/jira-software-cloud/docs/edit-issue-fields/#Editissuefields-Addvaluestomulti-selectfields

Best regards,

Bill

Bill, that was it, thanks.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why everyone using Jira must be GDPR-compliant

Did you know that penalties up to 4 % of the yearly company turnover are possible in case of GDPR violations? GDPR regulations are currently mainly relevant for companies in the EU, but countries lik...

102 views 1 3
Read article

Community Events

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

Events near you