Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,028
Community Members
 
Community Events
184
Community Groups

teams in issue

I noticed that I can see team in some issue, but I can't get team name or Information with rest api /rest/issue/{issueKey}, there is no such field in return-json. I wonder how can I get team of each issue(if they have).Use which api.Thanks in advance

2 answers

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 16, 2022

HI @siren w 

Team is a customfield. You do not have the customfield_XXXX value in the JSON returned by the REST call ? Where XXXX is the field ID for Team field.

on the right-top of issue board, here you can see team, but I can't get this field from rest api

And I see no fields like custom_fieldxxx contains information about team

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 17, 2022

What is your App version ?

 

On my side my Team field has the id 10100, you can find the id by going to Issue>Custom Fields then search and edit or view, the Team field, you have the id in the URL

 

http://localhost:8080/secure/admin/ConfigureCustomField!default.jspa?customFieldId=10100

 

By calling the API to an issue with a Team value I get the Team in the Json response.

 http://localhost:8080/rest/api/latest/issue/QSD-3

,"customfield_10100":{"id":1,"name":"qsd Team"},

 arTeam.PNG

I check my custom_filed10100 but  it returns weird value, it seems like that we're different. So you mean this can be set by admin count right? if admin set the customfield_xxx is team field then I can get team message from custom field_xxx. Thanks bro, helps a lot.

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 18, 2022

It's not set by the admin but at the installation of the app, the field has been created with the next available field Id so it's different from 1 instance to another.

If you try to create an advance search in Jira you can get the field Id, searching for Team the auto-completion sould show you Team cf[XXXX], XXXX is the id you are looking for.

 

Regards 

Like siren w likes this

@Florian Bonniec@Florian Bonniec I see this on the right-top of issue board, here you can see team, but I can't get this field from rest api and I see no customfield_XXX contains information about teamScreen Shot 2022-08-17 at 17.06.32.png 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events