Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get Status object by id?

grundic
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.
November 17, 2011

Hello!

How can I do it programmatically?

And also how to transition issue programmatically?

ps: today my googlefoo fall into decay :(

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
JamieA
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.
November 17, 2011

com.atlassian.jira.config.ConstantsManager#getStatusObject("1")

and

com.atlassian.jira.bc.issue.IssueService#transition(...)

grundic
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.
November 17, 2011

Thank you :-]

Shaikh Moiz August 26, 2013

Hello Jamie,

Can you please tell me how can i get the current ActionId / ActionDescriptor of the issue being transitioned ,i.e when an issue is being transitioned.

JamieA
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 4, 2013

Either:

public ActionDescriptor getAction ()

or

public String getActionName ()

SERGEY KOCHKAREV February 18, 2015

Hi, Jamie, Does getStatusObject return standard status or it reads statuses for selected workflow from database?

JamieA
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.
February 18, 2015

status objects are independent of workflow...

TAGS
AUG Leaders

Atlassian Community Events