You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi there,
I need to set a specific value on a custom field within some linked issues but not all of them.
I'm using the 'Set field value of related issues (JMWE app)' Post Function and am using the 'Issues Returned by the following Groovy script' option to find the specific related issues that I require updated.
From the research I've carried out to date the following syntax returns a list of all of the related issues
issue.getLinkedIssues()
And these are the results:
ArrayList
[Test-250, Test-249]
So this gives me all the related links which is great but I need to break that down further and only have the 'Result Value = Test-249' and not just list all of the related issues.
Is this doable? Does anyone have the correct syntax to use in this scenario?
Any help appreciated...
Thanks
What is your criteria for filtering the linked issues? How do you decide which linked issues should be updated?
Hi David,
The linked Issues are all using the same Link Type so I'm thinking that the best way of filtering the issues so that I just update the one I need to is via the 'Issue Type' name...
Is that feasible?
Rgds,
Vivienne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivienne,
sure, you could do something like:
issue.getLinkedIssues()?.findAll{it.get("issuetype")?.name in ["Bug","Task"]}
to return all linked issues of type Bug or Task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
That worked...
Thank you so much for the help on this... appreciate it.
Rgds,
Vivienne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.