Get user permission for issue tracking

Prev Next

This tutorial demonstrates how to get user permission for issue tracking via RESTful API.

The steps include:

  • Get job ID

  • Get the user permission

The commands are provided in curl and can be run from the command prompt when the Synergy Server is running (or in a batch script)

Additional API documentation

To get a list of most of the API requests available, with the 12d Synergy server running, browse http://synergy.myserver.com/api-docs/ui/index.

(Replace synergy.myserver.com with the external server address and update the port numbers if necessary.)

1.1. Getting the Personal Access Token to access API

The tutorial for getting the PAT is here: Generate PAT in Web client.

1.2. Get the list of issues

Firstly, get the list of jobs here: Search Jobs

You can then select which issue ID you want to use on the request below.

1.3. Get the issue comments

This request can be found in the API Documentation under Get user permission.

Sample Request

POST curl --location 'http://localhost:8080/api/v1/issue-tracking/permission/get/{job-id-here}' \

--header 'Authorization: Bearer <your-token-here>' \

--header 'Content-Type: application/json' \

Below is a sample response when getting an issue by ID.

Sample Response

{

    "can_edit": true,

    "can_view": true

}