Get Workflow of an Issue using JAVA

georgiossalon
Contributor
December 14, 2018

Is there a way to get a Workflow from an Issue within JAVA e.g. TO DO; IN PROGRESS; DONE?workflowOfIssue.PNG

2 answers

0 votes
georgiossalon
Contributor
December 16, 2018
.
0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2018

What do you mean by "get", and what do you want from it?

georgiossalon
Contributor
December 16, 2018

I mean, get all three values of the workflow: TO DO, IN PROGRESS, DONE and save them in java. Of course these values can vary from issue to issue. Otherwise I could just write the values manually.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2018

I'm afraid that does not explain "get"?

georgiossalon
Contributor
December 17, 2018

In the Jira version I am using, each issue has a status. Under the status "field", there is a "hyperlink" (View Workflow). I want to somehow retrieve (JAVA REST API) the values depicted (also visualized in the pic above) when I click on this hyperlink.

 

If this description of "get" is not clear, please do explain which part of it I should explain in an alternative way. What is the first thing it comes to your mind when reading "get" values?

 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2018

The view you see in the "view workflow" pop up is a dynamically generated image, not a simple value.  There is no "get" for it other than calling the code that generates it to display the image. 

Your code will need to invoke the same call the window does and then handle the returned image appropriately.

Like georgiossalon likes this
georgiossalon
Contributor
January 2, 2019

Right. I suppose the values are saved in a Custom Filed or is in the Jira REST API a Class that I can use to get these values?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2019

The status is not a field, so no.  I don't think it's exposed directly in the REST API - you'd need to run a filter that returns a set of issues that are in all status in a workflow.

Like georgiossalon likes this
georgiossalon
Contributor
January 4, 2019

Thank you for making this clear.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events