Hi,
I want to check that there is at least one 'reject' type sub task before allowing 'send to developer' transition.
How can I achieve it?
Here's the code for condition or validator:
issue.getSubTaskObjects().collect { it.issueTypeObject.name }.contains('reject')
or:
issue.subTaskObjects.any {it.issueTypeObject.name == "reject"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that's even better.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys! ... One more question .. Can I validate that this reject subtask is also in "open" status ?
O.k got it ( I think .. )
issue.subTaskObjects.any {it.issueTypeObject.name == "Reject" && it.getStatusObject().name == "Open"}
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.