Forums

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

Is there a way to retrieve a list of all the Team IDs associated to active Projects ?

Ximena August 12, 2023

I need some help with automating the team association for epics and stories on roadmaps (My Jira instance is Jira Project Management Software v9.7)
Fist step:
I need help with retrieving the associated Team IDs for all active Jira Projects- could we have an export in a spreadsheet with - JIra project
name + team ID + any other relevant fields
Second Step:
Setting at each active Jira Project level the automation for associating the Team to each new epic and new story at creation.

 

1 answer

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
August 14, 2023

Hi @Ximena 

You should be able to get the Team ID via the API.

https://<company_url>/issues/rest/teams-api/1.0/team

JQL, should be able to get you all issues where a team value has been set. You can export this and deduct which team is used in which project

You can't get this information in an export. You should be able to get all information and combine it all, to get your required overview.

Automation is only on issues created in a project.

You will need to use an Edit action and then use more options setting, where to define in JSON format the action

Example for setting a team field:

{
"fields": {
"customfield_10100": "482"
}
}

Ximena August 22, 2023

Hello Marc,

Thanks for your answer and a thousands of apologies for my late reply. I think that I should have been more clear with my question. I am a beginner
and get confused.

Unfortunaley the https://<company_url>/issues/rest/teams-api/1.0/team did not work with my Jira instance.

When you say "JQL, should be able to get you all issues where a team value has been set." How is the value set ?

For the automation I need to know the value "482" as per your example":
{
"fields": {
"customfield_10100": "482"
}
}

The way I get that value is by doing:
https://jira.instance/rest/api/2/issue/issueid?expand=names
and then locating the customfield in the output.
Is there another way ?

I need all the different values for the same customfield (in this case 'rm.teams.plugin.customfield.team.title') of all projects that have a roadmap and was
wondering if this can be done in one request via the API.

Like Marc - Devoteam likes this
Marc - Devoteam
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.
August 22, 2023

Hi @Ximena 

I see I used the wrong URL, my bad.

The URL should be https://<company_url>/rest/teams-api/1.0/team

Can you confirm this is working and you are able to get all Team ID's

Ximena August 22, 2023

Hi Marc , 

It works and now I have all the ids needed. Thank you very much.

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events