How to get all person IDs using API?

Oleg Pechkovskiy April 1, 2022

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
AUG Leaders

Atlassian Community Events