Forums

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

What is the lowest permission level to get WorkflowScheme name and WorkflowSteps

Nandor_Jetsol
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2019

Hi!

I need to get access to all the available workflow steps (from Statuses and To Statuses) of a given project and Issue Type. We use it to synchronize JIRA and another Issue handling software. It is important, that we need all available "paths", and not just the available transitions of a given issue status. (So calling GET request to http://myjira.com/rest/api/2/issue/IssueKey/transition is not sufficient for us).

Reaching our goal, first, I am using a GET request the workflow scheme name: http://myjira.com/rest/projectconfig/1/workflowscheme/projectKey. After getting this I search for the proper issue type id, to select the workflow name I need.

With the workflow scheme name I call a GET request for http://myjira.com/rest/projectconfig/1/workflow?workflowName=MyWorkFlowName

From the JSON provided by calling the above request, I can save all the paths (I call it paths, because it contains the from & to statuses, without transition Id-s)  to a collection. The problem is, we are using a "technical_user" in our dev environment to access JIRA. On the product environment, the JIRA "technical_user" may not have a global JIRA ADMINISTRATOR permission, because external clients may not provide this permission for us (for reasonable causes). This tech user may have access to only one project in the JIRA system, it cannot see another project, because it can be confidential data, etc... If I withdraw the administrator permission of this user, the rest api calls returns with:

JsonError.png

Can you recommend any workarounds, or can you suggest what is the lowest permission level to reach workflow all the workflow "paths"?

(We are testing on JIRA Server v7.2.8.)

Thank you, in advance!

 

0 answers

Suggest an answer

Log in or Sign up to answer