-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: (Advanced Roadmaps) API / Documentation
-
1
Problem Definition
There is no public REST API endpoint able to assign issues to plan-specific teams.
Suggested Solution
Implement a public REST API endpoint able to change issue's teams within plans.
Workaround
Only if the teams are shared (instead of plan-specific), it's possible to use Jira's own API to edit the issue and change the value in this custom field. The specific endpoint is the one below:
Example:
- replace user:pw or add the auth method of your choice. ISSUEKEY-123 is the issue key, 22123 is the custom field ID and 599 is the Team ID.
curl -D- -u user:pw -X PUT -H "Content-Type: application/json" <baseurl>/rest/api/2/issue/ISSUEKEY-123 --data '{
"fields": {
"customfield_22123":"599"
}}'
- links to