This JQL function can be used to search for users by checking against user properties that contain text values.
usersWithTextProperty(property, operator, value) #Output: User list
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Next »
This JQL function can be used to search for users by checking against user properties that contain text values.
usersWithTextProperty(property, operator, value) #Output: User list
Parser expression | Description |
---|---|
assignee in usersWithTextProperty("country" , "=", "Germany") | This example returns all issues where the assignee's prperty 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 operator, the provided value must be a valid regex. |
Parameters used in this function
Parameter | Input (data type) | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
property | TEXT | The name of the user property. | ||||||||||||||
operator | TEXT | The operator used to compare the actual value with the expected value. Allowed operators are:
| ||||||||||||||
value | TEXT | The value that will be used to check against the actual user property. In case the operator is "matches" or "doesn't match", this value must be a regex. |
This function returns a USER LIST
Powered by Atlassian Confluence 8.5.7, themed by Refined 7.5.3 and Decadis AG