Reference to issues in Insight scheme (object) not visible

Marjan Posedi
Contributor
December 19, 2022

Hi.

I moved several insight object types to different scheme and replaced old objects (keys) in existing issues with new ones by using ScriptRunner. Updated issues have been re-indexed and can be filtered by the new insight object keys.

In new insight schema (object) reference to issues is not shown. However, the reference is still visible on old objects. 

If I do manual update on an issue, the reference is updated correctly - visible in new scheme (object).

What needs to be done to repair/avoid this? Is there a re-index function for insight scheme?

Versions:  JIRA - 4.13.4, Insight - 8.10.4

Regards,
Marjan

1 answer

0 votes
PD Sheehan
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.
December 20, 2022

Insight appears to have some internal listeners that will pick up on the fact that insight custom fields have change and update its internal tracking of the connected tickets.

In my experience, you need to trigger an "Issue Updated" event on the ticket with the Insight custom field somewhere in the event changelog.

This will happen if you manually edit the custom field. But changing other fields don't trigger the connected ticket to be refreshed.

It might be possible to somehow trigger an artificial event using the IssueEventManager. But I'm not sure how you can trick the Insight Listener to pick up on the change and update the connected tickets.

Marjan Posedi
Contributor
December 21, 2022

That is may main challenge ... I do not want to update issues since this will add a record to issue history log, and in many cases, trigger a notification or even transition. With additional record in history log I could "live" but notifications and transitions are unwanted. 

PD Sheehan
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.
December 21, 2022

I looked in the API documentation for any classes that might control the connected tickets data, but no luck.

Maybe you can ask Atlassian support directly.

Marjan Posedi
Contributor
December 22, 2022

Thx.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
4.13.4
TAGS
AUG Leaders

Atlassian Community Events