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
Nice to hear you were able to figure it out .
Welcome
It looks like you're new here. Sign in or register to get started.