Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

Although available, the API is not considered 'public' and could change in future releases

 

Teams

Expand
titleGet all teams

Get all teams

Returns a collection of all available teams

Code Block
GET /rest/teamsforjira/1.0/teams
Code Block
languagejs
titleResponse
 [
    {
        "actors": [
            {
                "avatarUrl": "http://www.gravatar.com/avatar/0be7a145b8d22e233a7bddf677288fd9?d=mm&s=16",
                "displayName": "Hannibal Smith",
                "id": "hannibal",
                "key": "hannibal",
                "type": "teams-user-actor"
            },
            {
                "avatarUrl": "http://www.gravatar.com/avatar/0be7a145b8d22e233a7bddf677288fd9?d=mm&s=16",
                "displayName": "Hannibal Smith",
                "id": "hannibal",
                "key": "hannibal",
                "type": "teams-lead-actor"
            },
            {
                "displayName": "jira-users",
                "id": "jira-users",
                "key": "jira-users",
                "type": "teams-group-actor"
            }
        ],
        "id": 1,
        "name": "The A Team"
    },
    {
        "actors": [],
        "id": 4,
        "name": "The B Team"
    }
]

...

Expand
titleCreate team

Create a team via POST.

Code Block
POST   /rest/teamsforjira/1.0/team
Code Block
languagejs
titleRequest example
{
    "name": "The A Team"
} 
Code Block
languagejs
titleResponse
{
    "actors": [],
    "id": 4,
    "name": "The A Team"
}
 
Expand
titleDelete teams

Delete team

Deletes a team

Code Block
DELETE   /rest/teamsforjira/1.0/team/{id}