Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

[Jira Cloud/REST] How to retrieve status properties using the REST API?

Julian Ting August 31, 2019

I have tried to use the statuses.properties option according to this guide for Jira's REST API but for each status it only returns 

"properties":{"issueEditable":true}

rather than a list of properties like

[{"key":"jira.permission.edit.projectrole.1","value":"Administrator","id":"jira.permission.edit.projectrole.1"}]

Whereas if I use the transition get properties function here, the following is returned as expected:

[{"key":"opsbar-sequence","value":"0","id":"opsbar-sequence"}]

 How do I get the properties set for workflow statuses using the REST API of Jira Cloud?

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2019

Hello Julian,

Thanks for coming to Community for your request and including great detail into what you’re wanting to accomplish. From reviewing the endpoints you provided, I do see that GET /rest/api/3/workflow has been deprecated and we suggest you use GET /rest/api/3/workflow/search in its place. This endpoint should output something similar to the following:

  "statuses": [
        {
          "id": "3",
          "name": "In Progress",
          "properties": {
            "issueEditable": false
          }
        }
      ]

Please give this endpoint a test and let us know if it meets your needs.

Regards,
Stephen Sifers

Julian Ting September 5, 2019

Hi Stephen,

I have tried both the deprecated and experimental options but neither returns the settings I require. Within Jira, it is possible to individually set the edit/assign etc. permissions for each status via the jira.permission.* properties as shown in the attached image. I am still unable to find a way to retrieve or set this via the REST API.

Regards,
Julian

 

Workflow Status Properties.png

Like Stephen Sifers likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events