Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Teams through Jira v2 Rest API

Hassan Rachid
Contributor
April 5, 2023

Hello. I am looking for a way to get the team information from a Jira Cloud instance. I am trying to add the ability for users to edit the `Team` field from outside of Jira.

When performing a JQL query for an issue, `allowedValues` is not provided for the `Team` field. Also, I have tried using the experimental custom field options and context endpoint but that doesn't work.

Is there a way, or a workaround, for getting the teams that exist in a Jira Cloud instance??

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2023

Hi @Hassan Rachid 

I recall from other community posts there are several different things in Jira Cloud called "Team".  Which one do you mean: advanced roadmaps, project scope, something else?  Knowing that may help the community to offer suggestions.  Thanks!

Kind regards,
Bill

Hassan Rachid
Contributor
April 6, 2023

@Bill Sheboy  To be honest, I'm not sure what the differences are? I'm referring to the teams that you can create by hovering over the team dropdown on the top left and clicking "Create Team". These are the teams that display for the Team custom field

 

Screenshot from 2023-04-06 07-42-50.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2023

Let's check if the field is supported by the REST API using the how-to article linked below.  Basically you identify an issue that has your Team field, and then call the REST API with a browser.  If you can find your field, you would know the smart value and custom field id for it.  If you do not see it, the field may not be supported by the public functions.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

If that does not help, you could also post this question in the developer community area to see what they suggest: https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events