We’ve successfully indexed our JIRA server, but the self-managed connector is also indexing attachment names as documents/items. I tried using the "Sync Rule" and "Advanced Rules" with Type != Attachment or IssueType != Attachment, but without success. The only thing that partially worked was NOT issueFunction in hasAttachments(), but this excluded bugs or stories that have attachments, which I want to keep.
Any suggestions on how to index issues like bugs or stories without indexing attachments as separate items?
Sync Rules are probably the easiest way to do this, but a few "gotchas" to be aware of:
casing is going to matter here
sync rules only apply the first rule that they match. So order the rules right, and make sure you have an exclude rule that matches attachments before any rule that would include those documents.
I just tested this locally, and this rule successfully filtered out my jira attachments:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.