# Jira Connector

**URL:** <https://discuss.elastic.co/t/jira-connector/366723>\
**Category:** Elastic Search\
**Tags:** connectors\
**Created:** [September 18, 2024, 10:19am UTC](https://discuss.elastic.co/t/jira-connector/366723 "2024-09-18T10:19:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noam\_Huri](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Noam\_Huri](https://discuss.elastic.co/u/Noam_Huri)\
**Post date:** [September 18, 2024, 10:19am UTC](https://discuss.elastic.co/t/jira-connector/366723/1 "2024-09-18T10:19:17Z")

</div>

Hi Team,

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?

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [September 18, 2024, 5:59pm UTC](https://discuss.elastic.co/t/jira-connector/366723/2 "2024-09-18T17:59:51Z")

</div>

Hi @Noam_Huri ,

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:

 ![Screenshot 2024-09-18 at 12.59.32 PM](https://us1.discourse-cdn.com/elastic/original/3X/8/1/811e95ca36d99b3cd172d8ab5af291abed0086e7.png)

---

<div class="post-metadata">

**Author:** ![Noam\_Huri](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Noam\_Huri](https://discuss.elastic.co/u/Noam_Huri)\
**Post date:** [September 19, 2024, 7:42am UTC](https://discuss.elastic.co/t/jira-connector/366723/3 "2024-09-19T07:42:46Z")

</div>

Hi Sean, thank you very much!

I believe you are right because I started by filtering a specific Project. I’ll give it a try and let you know.

Thanks

Noam

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 17, 2024, 7:43am UTC](https://discuss.elastic.co/t/jira-connector/366723/4 "2024-10-17T07:43:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
