I need to get all statuses using Java API.
Hi @Ramesh Lakshmanasamy,
You can use ConstantsManager.
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.config.ConstantsManager;import com.atlassian.jira.issue.status.Status;ConstantsManager constantsManager = ComponentAccessor.getConstantsManager();Collection<Status> statuses = constantsManager.getStatuses();
Tansu
I need to get StatusID and StatusName @Tansu Akdeniz.When i loop using collection object i cant get status name and Id.
You can take id, name etc values inside the loop.
for(status in statuses){ println "Status Name: " +status.getName(); println "Status Id: " +status.getId();}
Thanks @Tansu Akdeniz
You are welcome @Ramesh Lakshmanasamy. If my answer helped to solve your question, would you please accept it. So that, other people will be able to find this answer easily for similar questions.
It looks like you're new here. Sign in or register to get started.