I have done a bit of research on this topic and can't seem to find anything that solves my issue.
Our Jira application has 2 issues types, Type 1 and Type 2. Type 1 is the parent of Type 2 which is achieved by linking through the linked issue field.
There are a couple custom fields that are single select drop down menus on these issue types. When you select an option in Type 1, it automatically flows down and selects in Type 2 via a listener. HOWEVER. The issue is, that when you do this, Type 2 does not show up on JQL queries unless you re-index.
Is there a script that I can add to my existing listener that would force a re-index of that issue so that we are re-indexing and slowing Jira down all day?
Thanks for your time!
It sounds to me that there is an issue with your listener... Is it a Groovy Script or how is it done?
If it is a self created Groovy Script then ensure you correctly store the updated value on the Issue:
To actually set a custom field value, use OrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)
in order to Record the value on the issue (not saving it to the database, see updateValue).
@Michael Aglas - I don't believe there is an issue with the script. It does exactly what I need it to do by updating the fields of the child issue when the parent is updated. We just need it to re-index afterwards, apparently this is a common problem in doing research on how to fix it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.