Add component(s) to all projects

Hello All,

 

We have a couple of components that need to be added to every project in our JIRA instance (we're on JIRA Cloud). Is there a way to bulk add these somehow?

 

I have found this KB: https://confluence.atlassian.com/jirakb/how-to-bulk-import-components-into-jira-720418562.html and option 2 seems to be what I need, but nowhere does it state that this route will add that issue to all projects. 

 

Thank you,

Razvan

1 answer

0 vote

To ge the method you've found to work, you will need to repeat the contents of the import file for every project you have (plus repeat deleting the loading issues)

You might be able to do this with the ScriptRunner add-on for Cloud, but I would actually start with some external scripting or coding.  Write something on your computer that can use REST to read the current list of projects and add the components to each of them.

However, I'd also think carefully before doing this.  Components are project specific.  If you add the "same" component to all projects, they're still separate components.  If, for example you have "penguins" in five projects and you search and push the result through a gadget displaying "component", you will get five separate lines, one for each penguin.

So, no UI way to do this? :) I'm not a programmer, just the admin.

No, there's no way to do it in the UI,

This is because it's mostly useless - people generally don't want swathes of "global" components that are not actually global.  (We do want proper global components, but adding the differnet components to projects with the same name is not a global component)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

111 views 12 3
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