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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.