Uploaded image for project: 'Advanced Roadmaps'
  1. Advanced Roadmaps
  2. JPOSERVER-2403

Portfolio Plan API: Expose Teams instead of Plan Teams

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 0
    • 1
    • JIRA feedback is collected from a number of different sources and is evaluated when planning the product roadmap. If you would like to know more about how JIRA Product Management uses customer input during the planning process, please see our post on Atlassian Answers.

    Description

      Summary

      Currently the get plan endpoint "/jira/rest/jpo-api/1.0/plan" returns a plan with a list of PlanTeam IDs. We should instead be giving a list of Team IDs. Otherwise a user won't be able to do basic things like, what are the names of the teams in my plan.

      Workaround

      1. Send a GET request using /rest/teams-api/1.0/team to get the full list of teams
      2. Send a POST request using /rest/jpo/1.0/team/get and this JSON body:
        {
        	// ID of the plan
        	"planId"     : 1,
        	
        	// If scenario teams are wanted, the scenarioId can be provided here. Otherwise just use -1
        	"scenarioId" : -1,
        	
        	// This should be the full list of teams returned by /rest/teams-api/1.0/team, formatted as strings
        	"itemKeys"   : [
        		"4",
        		"7",
        		"14"
        		// ...etc
        	]
        }
        

      The rest endpoint will then return info related to those teams. You will then need to filter out all teams that have "isPlanTeam" value of false. The remaining teams are the ones that belong in the plan.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vdung Andy Nguyen (Inactive)
              Archiver:
              atibrewal@atlassian.com Aakrity Tibrewal

              Dates

                Created:
                Updated:
                Archived: