Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I exclude a sub-Repository using the Git Integration for Jira app?

Shane Flood
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2024

Using Git Integration for Jira, I have connected a GitLab repo to my Jira instance.  This automatically connects all the GitLab repositories created in our instance to the integration.  By default its looking for the monitoring.git repo, which is a default repository for all GitLab servers. 

Was wondering if I could remove this repo from indexing given it errors due to not having permission.  

I have tried to de-select it from the "show integration repositories" however it does not appear.

2 answers

Suggest an answer

Log in or Sign up to answer
2 votes
Dave Labra Gaona June 11, 2024

Hi Shane,
How are you? I'm David from Gitkraken.
Yes, you can exclude repositories. The plugin is very flexible with creating integrations. I assume that you are using our Data Center version, but if you are using Jira Cloud, just let me know and I will send the specific articles.

To filter/exclude repositories, you may use a feature called JMESPath filter, in the integration settings. You can access to this part by clicking on "Edit integration connection settings" option.

2024-06-11_11-37.png

Then enter the filter in the JMESPath filter field:

2024-06-11_11-39.png

As an example, you can use the following filter to remove the monitoring.git repository:



[? !contains(name, 'monitoring')]

 

Please, note that the field is case sensitive. In this case, we exclude all repositories that contain the word 'monitoring'

If you need more help with this you can contact us here.

Cheers,

0 votes
Sakhawat Hussain June 10, 2024

When you make any updates to Jira tasks, it’s always recorded in history, but you can’t search by the past meanings. However, the history can show the previous and current value. If you know what words the description consists of now, you can find it with JQL. For example, you look for the task with the word “checklist” in it.

TAGS
AUG Leaders

Atlassian Community Events