Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

This JQL function can be used to search for returns users by checking against their user properties that contain text values.

Code Block
languagebash
titleSyntax
linenumberstrue
usersWithTextProperty(property, comparatoroperator, value) #Output: Text TODOlist
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
assignee in usersWithTextProperty("country" , "=", "Germany")
This example returns all issues where the current assignee 's has a text property country is equals called country with a value equal to Germany.
Code Block
linenumberstrue
reporter in usersWithTextProperty("country", "~", "usa")
This example returns all issues where the reporter's property country is equals current reporter has a user text reporter called country with a value equal 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.
Code Block
linenumberstrue
reporter in usersWithTextProperty("department", "matches", "(IT|HR)")

This example returns all issues where the current reporter

's

has a text property

department is either

called department with a value equal to IT or HR.

(warning) When using the matches comparator, the provided value must be a valid regex.

Code Block
linenumberstrue
reporter in usersWithTextProperty("importance", "matches", "^.*(required).*")

This example returns all issues where the assignee's property importance contains the word required.

(warning)
UI Text Box
typeinfo

When using the matches

comparator

operator, the provided value must be a valid regex.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
property

Status
subtletrue
titletext

The name of the

JWT

user property.

comparator
operator

Status
subtletrue
titletext

The

comparator

operator used to compare the actual value with the expected value. Allowed

comparators

operators are:

ComparatorDescription
=Property must be equal to the specified value.
!=Property must not be equal to the specified value.
~Property must be equal to the specified value, ignoring the case.
!~Property must not be equal to the specified value, ignoring the case.
matchesA regex can be provided that must be fulfilled by the property.
doesn't matchA regex can be provided that must not be fulfilled by the property.
value

Status
subtletrue
titletext

The value that will be used to check against the actual user property.

(warning)
UI Text Box
typenote

In case the

comparator

operator is "matches" or "doesn't match", this value must be a regex.

UI Expand
titleOutput

This function returns returns a

Status
subtletrue
titletext list

UI Text Box
typetip

If you want to search for issues where a user as a specific numeric or date property value, have a look the the usersWithNumericProperty() or usersWithDateTimeProperty() function.

If you want to search for issues, checking only if a property is being set ignoring it's value, have a look the the usersWithProperty() function.

Include Page
DECADIS:_snip_limit_JQL_functions
DECADIS:_snip_limit_JQL_functions

Page properties
hiddentrue
Short descriptionTODOReturns users with specific text properties.
Output

Status
subtletrue
titletext list

Label
Page properties
hiddentrue

Status
Tech review

Status
colourYellow
titletodoReady for review

Style guide

Status
colourGreen
titletododone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged