Forums

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

Jira query result suppress attributes from result objects

Mark Ross July 21, 2019

Hello,

in my result object are many issues. One of these issues has more than 2.000 links.

The query takes more than 60 seconds.

 

Is there any possibility to filter attributes from result objects? Or to suppress some link types?

 

 

Best regards

 

Mark

 

2 answers

0 votes
Tarun Sapra
Community Champion
July 22, 2019

Based on the method which you are using to fetch issues, you can write something like a closure to ignore certain set of issues.

0 votes
Alexey Matveev
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 Leaders.
July 22, 2019

Hello,

How do you select issues? What do you use? Is it rest api? If so, which rest api method do you use?

Mark Ross July 22, 2019

Hi Alexey,

Thanks for your questions.

I select issues by jql, using REST API from Jira.

((issue="key-16") OR issue in linkedIssues("key-16") AND (project="FooBar" OR project="Foo" OR project="Bar" OR project="Terminus"))

-> There are one more additional linked issues with more than 2.000 links, which I do not want to get (and which I don´t aks for).

The corresponding problem here is the time it takes to get the llinked objects.

 

best regards

 

Mark

Alexey Matveev
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 Leaders.
July 22, 2019

Try to limit the custom fields, which should be returned by the rest method.

User the fields parameter.

Add to your url

&fields=key

Like Tarun Sapra likes this
Mark Ross July 22, 2019

Hi Alexey,

Thank you for the information - this was exactly, I was searching for :)

 

best regards

 

Mark

Suggest an answer

Log in or Sign up to answer