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 projectname + team ID + any other relevant fieldsSecond Step:Setting at each active Jira Project level the automation for associating the Team to each new epic and new story at creation.
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"}}
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 beginnerand 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=namesand 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 waswondering if this can be done in one request via the API.
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
Hi Marc , It works and now I have all the ids needed. Thank you very much.
It looks like you're new here. Sign in or register to get started.