GitHub user dosubot[bot] added a comment to the discussion: Can you add filters 
to JIRA about labels ?

<!-- Answer -->
Yes, you can filter JIRA issues by labels in DevLake, but not directly in the 
DevLake connection setup. Instead, you need to customize the JQL filter for 
your JIRA board to include label-based criteria (for example, `labels = 
productA`). DevLake will then respect this filter and only ingest issues 
matching the JQL when collecting data from that board. If you update the 
board's JQL filter, you may need to trigger a full sync in DevLake to refresh 
the data—this can be done by setting the environment variable 
`JIRA_JQL_AUTO_FULL_REFRESH=true` or via the UI. This approach lets you set up 
different products in DevLake and receive only the relevant issues for each, 
avoiding data pollution from unrelated issues on the same board 
([source](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/jira/tasks/board_filter_begin_collector.go)).

Currently, DevLake does not support configuring label-based filters directly in 
its UI or connection settings. As an alternative, you can differentiate 
products post-ingestion by using labels in your queries or dashboards. There is 
also a proposed (but not yet implemented) feature to use custom Lua scripts for 
more advanced label-based mapping after ingestion 
([source](https://github.com/apache/incubator-devlake/issues/8251)).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a4cb1722-9cc1-48d1-a2f3-46216a93fd06?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Yes%2C%20you%20can%20filter%20JIRA%20issues%20by%20labels%20in%20DevLake%2C%20but%20not%20directly%20in%20the%20DevLake%20connection%20setup.%20Instead%2C%20you%20need%20to%20customize%20the%20JQL%20filter%20for%20your%20JIRA%20board%20to%20include%20label-based%20criteria%20%28for%20example%2C%20%60labels%20%3D%20productA%60%29.%20DevLake%20will%20then%20respect%20this%20filter%20and%20only%20ingest%20issues%20matching%20the%20JQL%20when%20collecting%20data%20from%20that%20board.%20If%20you%20update%20the%20board%27s%20JQL%20filter%2C%20you%20may%20need%20to%20trigger%20a%20full%20sync%20in%20DevLake%20to%20refresh%20the%20data%E2%80%94this%20can%20be%20done%20by%20setting%20the%20environment%20variable%20%60JIRA_JQL_AUTO_FULL_REFRESH%3Dtrue%60%20or%
 
20via%20the%20UI.%20This%20approach%20lets%20you%20set%20up%20different%20products%20in%20DevLake%20and%20receive%20only%20the%20relevant%20issues%20for%20each%2C%20avoiding%20data%20pollution%20from%20unrelated%20issues%20on%20the%20same%20board%C2%A0%28%5Bsource%5D%28https%3A//github.com/apache/incubator-devlake/blob/main/backend/plugins/jira/tasks/board_filter_begin_collector.go%29%29.%0A%0ACurrently%2C%20DevLake%20does%20not%20support%20configuring%20label-based%20filters%20directly%20in%20its%20UI%20or%20connection%20settings.%20As%20an%20alternative%2C%20you%20can%20differentiate%20products%20post-ingestion%20by%20using%20labels%20in%20your%20queries%20or%20dashboards.%20There%20is%20also%20a%20proposed%20%28but%20not%20yet%20implemented%29%20feature%20to%20use%20custom%20Lua%20scripts%20for%20more%20advanced%20label-based%20mapping%20after%20ingestion%C2%A0%28%5Bsource%5D%28https%3A//github.com/apache/incubator-devlake/issues/8251%29%29.)&nbsp;[![Join
 Discord](https://img.shi
 
elds.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/discussions/8696)

GitHub link: 
https://github.com/apache/incubator-devlake/discussions/8696#discussioncomment-15703892

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to