You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi all,
my request is the following:
I want to create a new issue within a post funtion and set a condition depending on the already existing linked issues to the current issue. Means, the transition should check, if a linked issue with a certain summary already existis and if yes, then the issue should not be created within the post function. If it doens't exist, the issue should be created.
We are using JMWE Plugin for creating issues within a post function.
Hope, someone can help me.
BR
Franzi
you can use something like this as the Conditional Execution script:
!issue.getLinkedIssues().any{it.summary == "A summary"}
Hello,
thank you but it seem like this doesn't work properly as it always returns "true" even if I enter something senseless
BR
Franzi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that's kind of normal: you want the post function to run unless there is a linked issue that has the specified Summary, so unless the issue has a linked issue with "tgtihertzh" as its summary, the code will return true.
Don't forget that the post function will run unless the Conditional Execution script returns false (true means continue running, false means "skip")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oooh ok, so I need the complete name of the summary, not only a part of like "summary contains"... But in this case, this is hard because the summary differs from issue to issue depending on a certain custom field content. Can I also enter the custom field variable in this script like
!issue.getLinkedIssues().any{it.summary == "SEO package - "custom field xxx""}
Or is there a wy to write the script in a way that doesn't ask for the specific whole summary but only a part if it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to test for a substring of the summary, you can use this:
!issue.getLinkedIssues().any{it.summary.contains("A partial summary")}
And if you want to test against a summary built from other values:
!issue.getLinkedIssues().any{it.summary == "SEO package - ${it.getAsString("customfield_12345")}"}
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.
Hello,
I advise you to contact JMWE support, they will always get back to you with a solution.
https://innovalog.atlassian.net/servicedesk/customer/portals
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.