Forums

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

REST API - How to get issue and request type initial workflow state?

Ian Carlos
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.
September 13, 2023

Hi, I hope you're fine

I'm performing some calls to the Jira REST API using PHP

I would like to know how to get the first state of an issue type and a request type (yes, for both, since some of my projects don't have request type)

Is there a way to get this? How? Please help me out

I think that I could get the workflow and the info will be there, but I don't know how to get the workflow for issue and request type

Thanks in advance, best regards

1 answer

0 votes
Naveen Kumar_Appfire
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.
September 13, 2023

HI @Ian Carlos

Calling the below rest API you can get all the information that is related to the issue in a JSON format.

https://test.atlassian.net/rest/api/3/issue/TEST-12

In JSON format you can get the IssueType and RequestType and Status of the issue.

Ian Carlos
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.
September 13, 2023

Hi @Naveen Kumar_Appfire thank you for your fast reply

I've used this call before, is fine and works

 

The thing is, this is not what I want, and sorry if I missexplained myself

I want the workflow initial status of an issue type (not an Issue)

i.e.
    I want to know the initial state when an Incidence is created (before create it)

 

This for Issue and Request Type (Due that my Company - Managed Software projects don't have Request Types, only Issue Types)

Thanks in advance

And sorry if I missexplained myself

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events