Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is there a way to get an user's Team through the Rest api?

I want to get the teams a user is in through the rest api. I mean the Teams you can see under a user's profile like:  (https://server.atlassian.net/jira/people/team/teamId)

I'm not talking about the user's groups.

Is this possible?

6 answers

5 votes
Anish Deena Atlassian Team Apr 05, 2020

Hi Henry, while we don't have a way to do that now, it's part of our plans. Curious to understand the use case here to see if we can help in any other way?

hi @Anish Deena is there any update with this ? 

App users are asking if they can get use these teams within the apps.

 

Like Jennifer McVicker likes this
Anish Deena Atlassian Team Jun 03, 2020

Hello @Evangelos Mantadakis, I'm afraid I don't have a new update to this. We currently don't have public team APIs. Thanks

@Anish Deena, we have a requirement to pull "Shared Team" data via API and create custom reports on Power BI. Could you please guide me on how i can achieve that?

Link to "Shared Team" feature
https://confluence.atlassian.com/advancedroadmapsserver/managing-shared-teams-802170492.html

Like # people like this

@Anish Deena is there a ticket for this that I can up-vote? I also need this ability.

Like # people like this

Same here, could really do with a timeline on this, @Anish Deena :)

Like Matthew Reynolds likes this

I'd like to be able to access shared team membership, ideally to look up an assignee's team membership and then set the Team field via Automation for JIRA.

I'd love this to be able to sync our JIRA teams with mailing lists, calendar invites, as well as additional tooling to help easily manage guilds/tribes

 

Any link to issue on API roadmap?

We would like to synchronize our company PagerDuty groups with Jira teams. I have seen a "Groups" endpoint under the platform API but this is different from the Teams in Jira Software. It would be really great if there was a simple teams API endpoint we could build this integration with.

Are you using a third party add-in for that functionality? I haven't heard of that Teams thing being part of native Jira Server or Cloud. It might be part of Atlassian Cloud.

Hi David, 

Teams is available natively on Jira and Confluence cloud editions.

Teams in their current format are not as useful as they could be.

We'd love to allow people to ask 'Teams' for approval on pages from Confluence (using the Approvals for Confluence App), instead of duplicating the functionality ourselves.

Similarly, it would be useful to compare 'Teams' against one another with 'Pulse for Jira', but unfortunately, there is no API available at the moment for this - and it doesn't seem to be coming soon.

This, along with the lack of any inject-able panels in the new User UI makes the changes around 'People' feel half-baked and it locks out developers from this new interface.

@Anish Deena Here are some straightforward use-cases requiring access to Team data.

Let's start with an Advanced Roadmap in Jira Cloud using teams.

Here are several Automation Rules that would need to leverage the Team field:

  • Confirm that the Assignee for each issue in the plan is in the Team.
  • Assign someone in the Team to unassigned issues in the plan.
  • Notify everyone in the Team for certain issue changes (e.g. release change).

Since the Assignee field is completely independent of the Team members, this is an ideal opportunity to utilize Automation for a variety of organization-specific needs.

Observe that there are two types of Team data needed here:

  • Access to the "Team" field in an issue
  • Access to the members of a given Team

As of 1Q2021, access to the Team field seems almost exclusively restricted to Roadmaps. The only exception I found was that using an Advanced Issue search in Jira will show (only) Shared teams (even with full admin privs):

Screen Shot 2021-03-16 at 11.21.31 AM.png

-- -- -- -- -- -- --

We have a current use-case where our Roadmap leverages a set of Teams, each containing a single user. Our roadmap is 6-months with significant dependencies, multiple releases, estimations, etc. We want to leverage Auto-schedule as we periodically iterate on the plan during execution.

My goal today to support this effort was to "simply" use Automation to set the Assignee field in each of the hundreds of issues to match the Team. But I can't.

I also hoped to set up a "bi-directional sync" rule, to help keep the Team and Assignee fields matched. That's not going to work either.

Automation doesn't seem to know about the team field at all:

Screen Shot 2021-03-16 at 11.38.52 AM.png

Screen Shot 2021-03-16 at 11.39.33 AM.png

I'll be able to manage the initial Assignee step manually, iterating with Bulk Edit. But without any "sync" option, I'll have to periodically review all the issues manually for mismatches.

For those following this topic, and wanting to vote for this capability:

https://jira.atlassian.com/browse/JIRAAUTOSERVER-159

I also found this closed ticket that found some (inconsistent) access to the Team field via "Fields Changed" in Automation. But there is no joy here:

https://jira.atlassian.com/browse/JIRAAUTOSERVER-26

Also: I realize the OP was focused on the Jira API. But I believe there are systemic issues with access to this data at all, outside of Roadmaps. Were that to be addressed, I expect both API access and Automation access would be offered.

Suggest an answer

Log in or Sign up to answer
TAGS

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