Force update a SIL Custom field

salman_kagzi June 10, 2014

I have a SIL Custom field which aggregates a number values from a set of linked issue. This field works fine for me, but it seems that its value is updated only when the Issue is opened. I want this field to be updated dynamically so that I have the latest value in it and can have a proper search working on this field.

Is it possible to force update this using some SIL listener? For example, I know this field's value changes when an issue linked to it changes. So can I trigger an event on lets say an Update Event on the linked issue, which updates this field?

1 answer

1 accepted

0 votes
Answer accepted
Florin Manaila
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.
June 10, 2014

Yes, that may work. You can use a listener that will trigger the Updated event for the linked issues when one issue is updated using http://confluence.kepler-rominfo.com/display/SIL/raiseEvent. However, depending on your notification scheme, this may also send an email which you may or may not want. Additionally, if you're not careful with this, it can end up with an infinite loop. You could also consired using http://confluence.kepler-rominfo.com/display/SIL/admReindexIssuefor the linked issue instead of triggering the Updated event.

HTH

salman_kagzi June 11, 2014

admReindexIssue worked. Thanks!

Florin Manaila
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.
June 11, 2014

Yeah, IIRC that's the exactly why that routine was created.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events