You can use ConstantsManager.
import com.atlassian.jira.component.ComponentAccessor
import 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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can take id, name etc values inside the loop.
for(status in statuses){
println "Status Name: " +status.getName();
println "Status Id: " +status.getId();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.