Hello :)
Just wondering if there is a get method to get an issue status object by name?
i know there is getLinkedStatusObjects() but it returns all status object in that issue?
Many thanks in advance,
Pon
It seems there is no such method. Why you do not create one ?
pseudo code :
Status getStatus(String name){
def workflowStatuses = getLinkedStatusObjects()
def status;
status=workflowStatuses.find{item -> item.name==name}
return status;
}
Ahh thank you for this, coming from Python i didn't know about find { item -> ....etc }
thanks for that,
Cheers,
Pon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice to hear you were able to figure it out .
Welcome :)
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.