This JQL function can be used to search for users by checking against user properties that contain text values.
usersWithTextProperty(property, comparator, value) #Output: User list
Parser expression | Description |
---|---|
assignee in usersWithTextProperty("country" , "=", "Germany") | This example returns all issues where the assignee's property country is equals to Germany. |
reporter in usersWithTextProperty("country", "~", "usa") | This example returns all issues where the reporter's property country is equals to usa ignoring the case. So even, if the property was set to "USA" or "Usa", the function would count this as valid property value. |
reporter in usersWithTextProperty("department", "matches", "(IT|HR)") | This example returns all issues where the reporter's property department is either IT or HR. When using the matches comparator, the provided value must be a valid regex. |
reporter in usersWithTextProperty("importance", "matches", "^.*(required).*") | This example returns all issues where the assignee's property importance contains the word required. When using the matches comparator, the provided value must be a valid regex. |
Parameters used in this function
Parameter | Input (data type) | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
property | TEXT | The name of the JWT user property. | ||||||||||||||
comparator | TEXT | The comparator used to compare the actual value with the expected value. Allowed comparators are:
| ||||||||||||||
value | TEXT | The value that will be used to check against the actual user property. In case the comparator is "matches" or "doesn't match", this value must be a regex. |
This function returns USER LIST.