Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Contact Support

Tracked Folders JMESPath filter examples

An optional JMESPath filter can be configured when adding tracked folders.

1. Contains (include)

[?contains(name, 'git')]

Lists repositories with names containing ‘git’

[?contains(name, 'git') | contains(name, 'Slap') | contains(name, 'est')]

Lists all the repositories that contain the specified names. |

2. Contains (exclude)

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

[?(!contains(name, 'firstword')) | (!contains(name, 'secondword'))]

1 – Lists repositories with names that either do not contain the word 'firstword'.

2 – Lists repositories with names that either do not contain the words ‘firstword’ OR ‘secondword’.

3. Starts with (exclude)

The example below ONLY works for tracked folder integration; where it supports the ‘fullPath’ field:

[?!starts_with(fullPath, '/home/user/local/store/private-repos')]

Excludes repositories from the sub-folder.


More articles on JMESPath filter examples

GitHub.com | GitHub Enterprise JMESPath filter examples

GitLab.com | GitLab CE/EE JMESPath filter examples

Microsoft | VSTS | TFS | Azure Repos JMESPath filter examples

Tracked Folders JMESPath filter examples (this page)

Gerrit JMESPath filter examples

GitHub App JMESPath filter examples

Have feedback about this article? Did we miss something? Let us know!
On this page