Automating ticket creation for projects that require a component?

I would like to fully automate ticket creation for a program I am running within my organization. I am using the JIRA api to do this, but I'm running into problems with projects that require a component. It seems there is no way way to choose a default component or override the component requirement via api, so my program fails to create tickets for these projects. This is currently a blocker for the program, since it requires full automation. Any thought on how to work around this?

2 answers

0 vote

Use a component named "Needs Triage" is one way.

Or name the component "Created automatically"

Components are generally used for auto assigning issues to the right person. But there isn't a way to specify one component as the default.

0 vote
Steven Behnke Community Champion May 08, 2017

Well, you'll need to handle requirements per project. If a project has fields marked as required, you must provide them otherwise the call will fail.

You can use the createMeta endpoint to discover what fields are required. (Developer article: 

You can use the getProjectComponents endpoint to discover what options there are in a specific project. (API article:

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

305 views 38 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot