Skip to end of banner
Go to start of banner

JQL Support (Cloud)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Power Scripts for Jira Cloud can enhance your ability to search for issues using JQL. However, it is important to point out the difference between a traditional, server-hosted JQL function and a cloud-hosted JQL keyword. A JQL function performs an evaluation of the issue in real-time during the JQL search. This type of search is not possible in Jira Cloud and may never be possible in Cloud because it is a very resource intensive way of searching. A JQL keyword is meta-data for an issue that has been evaluated and saved prior to a JQL search. This type of search will always be faster and more efficient than a traditional, functional search since the results can be indexed and it is less resource intensive.

JQL Keywords

Attachments

attachedBy

Search issues where a specified user has attached a file to them using the attachedBy keyword.

attachedBy = "jdoe" AND created > startOfYear()

Data type: User

attachmentEarliestDate

Search issues based on the earliest date an attachment was added using attachmentEarliestDate keyword.

attachmentEarliestDate < startOfMonth()
//or
attachmentEarliestDate = "2020-01-01"

Data type: Date

attachmentLatestDate

Search issues based on the latest date an attachment was added using attachmentLatestDate keyword.

attachmentLatestDate > startOfDay()

Data type: Date 

countOfAttachments

Search issues based on the number of attachments it has using the countOfAttachments keyword. This can be used to determine if the issue has any attachments at all. 

project = "Test" AND countOfAttachments > 0

Data type: Number 

typeOfAttachment

Search for issus that contain a specific type of attachment. This search is based on the file extension of the attachment. For example, to search for a Microsoft Word document use "doc" or "docx".

project = "TEST" AND typeOfAttachment = "jpg"
//or
created > startOfWeek() AND typeOfAttachment = "pdf"

Data type: Text

Comments

commentAuthors

Search for issues based on users who have commented on the issue using the commentAuthors keyword.

project = "Test" AND commentAuthors = jsmith
//or
project = "Test" AND commentAuthors in (jsmith, jdoe, juser)

Data type: User

commentedOnDates 

Search for issues based on the dates that comments were created using the commentedOnDates keyword.

commentedOnDates = 2020-06-18
//or
commentedOnDates > startOfMonth()

Data type: Date

commentVisibleGroups

Search for issues with comments that have visibility restrictions applied for a specified group using the commentVisibleGroups keyword.

commentVisibleGroups = "Developers"
//or
commentVisibleGroups in ("Developers", "Managers")

Data type: Text

commentVisibleRoles

Search for issues with comments that have visibility restrictions applied for a specified project role using the commentVisibleRoles keyword.

commentVisibleRoles = "Administrators"
//or
commentVisibleRoles in ("Administrators", "Project Managers")

Data type: Text

countOfComments

Search issues based on the number of comments it has. This can be used to determine if the issue has any comments at all using the countOfComments keyword. 

countOfComments > 0
//or
countOfComments = 2

Data type: Number

firstCommentedOnDate

Search issues based on the earliest date a comment was added using the firstCommentedOnDate keyword. 

firstCommentedOnDate = 2020-06-18
//or
firstCommentedOnDate > startOfMonth()

Data type: Date

newestCommentAuthor

Search issues based on username of the last person to add a comment to an issue using the newestCommentAuthor keyword.

newestCommentAuthor = "jsmith"

Data type: Text

lastCommentedOnDate

Search issues based on the latest date a comment was added using the lastCommentedOnDate keyword.

lastCommentedOnDate = 2020-06-18
//or
lastCommentedOnDate > startOfMonth()

Data type: Date 

newestCommentVisibleGroup

Search for issues with a visibility restrictions applied for a specified group for the newest comment added using the newestCommentVisibleGroup keyword.

newestCommentVisibleGroup = "Developers"

Data type: Text 

newestCommentVisibleRole

Search for issues with a visibility restrictions applied for a specified project role for the newest comment added using the newestCommentVisibleRole keyword.

newestCommentVisibleRole = "Project Managers"

Data type: Text

hasLinkType

Search issues based on the link type name using the hasLinkType keyword.

hasIssueLinks = "is blocked by"
//or
hasIssueLinks in ("is blocked by", "is cloned by")

Search issues based on the link type inward description using the hasIssueLinks keyword. 

hasLinkType = Blocks
//or
hasLinkType in (Blocks, Cloners)

Search issues based on the number of links it has. This can be used to determine if the issue has any links at all using the linksNumber keyword. 

countOfLinks > 0

Data type: Number

Subtasks

countOfSubtasks

Search issues based on the number of subtasks it has. This can be used to determine if the issue has any subtasks at all using the countOfSubtasks keyword. 

countOfSubtasks > 0

Data type: Number 

Additional Info:

  • No labels