Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get members of a Team in Portfolio through coding.

Hi!

We have the Scriptrunner plugin and I want to retrieve all the members of a Portfolio team through scripting. I have tried with the rest-api https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/teams/ but it looks like there is no way to get resources from a particular team.

Is it even possible to get members of a Portfolio team through coding? 

1 answer

1 accepted

0 votes
Answer accepted

Hi David,

You can pull the TeamID and PersonID from the GET /resource endpoint:

http://BASE_URL/jira/rest/teams-api/1.0/resource

Regards,
Earl 

Oh, missed that one. Great, thanks :-)

Like Earl McCutcheon likes this

by any chance were you able to get good results by using the /resource , i am being trynig but the /resource is not bringing all the team , person relation that i can see on the UI

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

38 views 3 1
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