Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I have the following ScriptRunner script on server that is within a Workflow Condition.
issue.subTaskObjects.any {
it.issueType,name == "QA Sub-task" && it.status.name == "QA In Progress"
}
I need to re-write this for ScriptRunner Cloud and having a hard time figuring this out. I also have JIRA Misc. Workflow Extensions (JMWE) installed. I'm really don't care how this is implemented. Possible through a JIRA Automation in Cloud?
Any help would be greatly appreciated
with either ScriptRunner or JMWE (Build-your-own Condition), you can use the following code:
issue.subtasks && issue.subtasks.some(it=>it.issueType.name == "QA Sub-task" && it.status.name == "QA In Progress")
Worked great. Thanks!
Where can I find documentation on this solution. Looked everywhere for "Subtasks.Some" can can't find anything. Is this part of groovy syntax? Finding it really difficult to find examples on the object model and how to navigate properties in the cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The thing is, on Jira Cloud, you cannot use Groovy. Jira Cloud uses its own language called "Jira Expressions" for Conditions and Validators (and JMWE Cloud uses Nunjucks for post-functions, but that's JMWE-specific).
You can read more about Jira Expressions here: https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/455180360/Using+Jira+Expressions
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.