Degraded performance Customers may experience intermittent errors using Community search. Our platform vendor is investigating.
It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
As far I know, is posible to import multiple project components with a JSON file in JIRA (and that is great!!! I have to add 130 components!!) but I also need to set the Default Asignee to Component Lead, and I can t find the tag for do this.
I m using Jira 5.2.4.1. Is posible to do this in my version or in a later one?
Thanks in advance.
Hi all!!
Finally, I decided to use a small java application to read the information from a file, and use Jira API to create the components.
If it helps, this is the basic part of the code:
File file = new File(".\\components.txt"); List<String> contents; try { contents = FileUtils.readLines(file); for (String line : contents) { String[] lines = line.split("#"); final ComponentInput componentInput = new ComponentInput(lines[0],lines[0], lines[1],AssigneeType.COMPONENT_LEAD); final Component component = restClient.getComponentClient().createComponent("PROJECTID", componentInput, pm); } catch (IOException e) { e.printStackTrace(); }
As I can see in this documentation, when you add components you can only specify the name:
https://confluence.atlassian.com/pages/viewpage.action?pageId=314449019
It looks like you can import it but then edit with the UI every component, at least for now with the beta release.
Ramiro, I had seen that documentation, but it s incomplete. It doesn t specify anything about component fields (or I couldn t find it) but I could specify description an Component Lead of a component with a JSON like this:
{ "projects": [ { "key": "KEY", "components": [ {"name":"component","description":"component description","lead":"leaduser"} ] } ] }
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.