Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to rename / delete tempo team via rest api

Petr Procházka August 16, 2015

Is it possible to rename / delete tempo team via rest api?

Thanks in advance.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Tempo Support
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 18, 2015

Hi Petr

Delete

It is possible to delete a specific team via REST API using the teams id. The logged in user must have the Browse Team permission for that team. 

Request

 

curl -D- -u {username}:{password} -X DELETE -H "Content-Type:application/json" 
http://{yourserver}.{yourdomain}/jira/rest/tempo-teams/1/team/{teamId}

Rename

Renaming a team requires the Teams Permissions permission. This is also possible via REST API. If you only want to update the name then only include the name in data and skip the rest.

Request

 

curl -D- -u {username}:{password} -X PUT --data '{see below}' -H "Content-Type: application/json"  http://{yourserver}.{yourdomain}/jira/rest/tempo-teams/1/team/{teamId}

 

 Data

 

{
    "name""New Name",
    "summary""New Summary",
    "lead""Username"
}

 

The Teams REST API guide can be viewed here:

https://tempoplugin.jira.com/wiki/display/TEAMS/Teams+REST+API+Guide#TeamsRESTAPIGuide-addNewTeam

The guide needs to be updated to document the delete and rename functions. It is on our backlog.

Best regards,

Heiða Dóra

Tempo Team

Martin Dulák September 19, 2017

I'm not sure if this is intentional but please note that when you update the user only by providing name and skipping the rest, the team lead of the project will be reset to null and the user itself will be kicked out of the team.

TAGS
AUG Leaders

Atlassian Community Events