I'd like to modify an existing JMWE post-function that creates a new issue, specifically the condition that would make it true.
Within the condition, I want to execute the post-function only if the summary contains the word "Patch," as opposed to summary equals "Patch" since there may be differing values in the summary, but it will always begin the the word "Patch."
!issue.subTaskObjects.find{it -> it.get("summary") == "Patch" && it.get("status")?.name != "Done"}
Would there be a "like" or "contains" operator I could use? Thanks in advance for any guidance you can offer.
Hello @Durell Demartini
I wouldnt invest in that area since DC is EOL and you will risk that it wont be supported in cloud.
However, you can achieve the same result by using automation which are supported in cloud.
Best regards,
Ariel.
You can use the following for checking if it contains: !issue.subTaskObjects.find{ it.get("summary")?.contains("Patch") && it.get("status")?.name != "Done" }
Or, for your scenario. You can try:
!issue.subTaskObjects.find{ it.get("summary")?.startsWith("Patch") && it.get("status")?.name != "Done" }
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.