Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,109
Community Members
 
Community Events
165
Community Groups

How to get all person IDs using API?

Hello,

We want to make sync for Plans/Roadmap Teams from other source (AD) since it does not accept groups,

I am able to get information about existing groups and their members with compiling export of /team , /resource and /person

  • I get list of all teams with names and Team ID
  • I get list of all resources that consist of pairs group - person
  • I combine those two in new array where persons are added to corresponding team (by TeamID). I wish it could be done in one call/with one module but its ok, it works :)
  • In order to get username of the person I have to call /person API for every person ID I have in Team because I can not export whole person list (for /team and /resource you can export list, for person - no)

So I can export all teams and their members and check for people that are missing in some Team A,

Now I need to add missing people to this team by knowing their Jira usernames,

How can I do that?

As far I understood person has to be created in Portfolio plugin so it will have some ID,

How can I get this ID?

Or, in general, how can I add Jira user to Team through API for the first time?

 

Any information will be appreciated,

Thank you.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

65 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