Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find specific related issue using Groovy scripting in Post Function

Vivienne Barrett
November 11, 2020

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:

Result type:
ArrayList
Result value:
[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

 

3 answers

1 accepted

0 votes
Answer accepted
Bryan Karsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 29, 2013

Turns out several things were going on:

1. VM settings wrong. We accidentally had memory resource limits in place, which was causing ballooning.

2. our jvm was too big (as Matthia mentioned -- however, our prod environment ended up doing well with 12GB, and not 20GB.

3. STP plugin was causing errors, and hogging resources. We ended up disabling it, saw much improvement.

1 vote
codelab expert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 14, 2013

Try to make a reindex. This will make your system faster! Otherwise is your xmx and xms parameter to big. This means that the garbage collcor in your JVM has a lot to do. This will slow down your system. Please use xmx and xms parameter with 1024m.

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 14, 2013

VMs have no problem running JIRA. VMware being full virtualization though does have penalties.

What version of MySQL are you running?

How many CPUs are assigned to the VM? This may be important.

In your examples, slowness has been coming from JS and CSS. Have you enabled compression and caching? This would definitely help.

Suggest an answer

Log in or Sign up to answer