No such property: issues for class (after update to Jira 8.5.1)

ALEKSANDR MAISTRENKO January 22, 2020

Hello, everyone!

There is a line in our automation script:

issues = searchResult.issues.collect { issueManager.getIssueObject(it.id) }

 

After updating Jira to version 8.5.2, when I execute the script, I get an error:

groovy.lang.MissingPropertyException: No such property: issues for class: com.atlassian.jira.issue.search.SearchResults


Maybe someone has already solved this problem?

 

1 answer

1 accepted

5 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 27, 2020

Hi ALeksandr,

 

Could you please try to change the following line:

issues = searchResult.issues.collect { issueManager.getIssueObject(it.id) }

 

and use this one?

issues = searchResult.results.collect { issueManager.getIssueObject(it.id) }

 

Best Regards

ALEKSANDR MAISTRENKO January 27, 2020

Jack, It works.

Thank You so much.

Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 27, 2020

You are welcome ;)

Did my answer solve your problem?

If so, consider to mark the proposed solution as an 'Accepted answer'. This will help other people with the same or a quite similar problem to find a solution in a easy and faster way.
Otherwise, if you solved the problem in a way that hasn't been suggested yet in this thread, please I encourage you to reply your original message to tell us what was the final solution for the problem, you can also mark your own reply as an 'Accepted answer'.

In addition, by doing this the post will automatically gain the "Solved:" prefix in search results to indicate other people that no further support is needed.

Kind Regards.

BBS April 13, 2020

Jack it saved my day thanks.

Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 14, 2020

You're welcome

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events