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

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

Can Automation set the Component field even though the component does not exist (yet)

Edited

Hello there,

I'm trying to use Automation to set the component field when a new issue is created from our crash reporting tool.

 

Basic workflow:

1. When issue is created

2. If 'Reporter' is a specific user account

3. If issue's description contains "crash report link"

4. Set component "CrashReports"

 

The problem is that for all our projects the component 'CrashReports' may or may not exist. When it does not I get the following error in the Audit Log:

> Component name 'CrashReports' is not valid (components)

 

Is there a way around this? Can use Automation to create the component? Somehow can I set the component for all Jira projects (200+ projects... I don't want to click through them all).

2 answers

1 accepted

0 votes
Answer accepted
John Funk Community Leader Jun 03, 2020

Hi Kevin,

I am not aware of anyway that Automation For Jira can actually create components on the fly. You would need to do that for each project. 

You might could load those somehow using the API - but I am no expert there. (Or even a novice!).

John Funk Community Leader Jun 03, 2020

Great! I hope works well for you!  :-)

1 vote

Automation for Jira cannot do it, but third party apps like JMWE can (it's an option of the Set Field Value post function)

John Funk Community Leader Jun 03, 2020

Hey David - Didn't realize that - that's awesome and very good to know!

It only works for Components and Versions though, not Options because there was no API for that until recently. 

John Funk Community Leader Jun 03, 2020

That's good enough - those are the ones used the most. But not Labels either?

Labels are not a closed list in Jira so you don't need to create them before adding them. 

John Funk Community Leader Jun 03, 2020

True! Thanks for the clarification. :-)

Suggest an answer

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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

97 views 1 6
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