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

Contact Support: Server  
Contact Support: Data Center  

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.

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