Is it possible to rename / delete tempo team via rest api?
Thanks in advance.
Community moderators have prevented the ability to post new answers.
Hi Petr
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} |
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.