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
Hi Folks, Experts,
I stugged with requiment...
I need to create issue via workflow post-function (groovy create and link).
That schould work only if current issue haves linked to the issuekey: CPWEB-2056
How can i make it?
Read the links from the current issue with
issueLinkManager.getOutwardLinks(issue.getId())
That will return a list, which you can iterate through looking for
it.getKey().equals("CPWEB-2056")
Hi Nic, thanks for provided respond,
Currently still can't reach goal with this script:
if (issueLinkManager.getOutwardLinks(issue.id)*.getKey().equals("CPWEB-2056")) {
true
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic, thanks for provided respond,
Currently still can't reach goal with this script:
if (issueLinkManager.getOutwardLinks(issue.id)*.getKey().equals("CPWEB-2056")) {
true
}
What next? Hope you assist,
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.
import com.atlassian.jira.component.ComponentAccessor
def linkManager = ComponentAccessor.issueLinkManager
linkManager.getOutwardLinks(issue.getId()).each{
def linkedIssue = it.destinationObject
if (linkedIssue.key == "CPWEB-1823") {
}
}
true
doesnt works(
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.