Associating Branches with Work Items
Function
Associating Branches with Work Items
URI
POST /v2/projects/issues
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
branch |
Yes |
String |
Branch Name |
project_id |
Yes |
String |
Project ID. |
related_id |
Yes |
Array of strings |
Work Item Set |
repo_id |
Yes |
String |
Specifies the repository ID. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Response error. |
status |
String |
Status code in a response |
Example Requests
POST https://{endpoint}/v2/projects/issues { "project_id" : "a6142fa102b740988fe45cc40254d61c", "branch" : "unionsdk", "repo_id" : "2111616668", "related_id" : [ "5561081" ] }
Example Responses
Status code: 200
OK
{ "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.