Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL query for Labels and Schdueled ReleaseDate

sunil kumar June 8, 2017

I need a query for pull data from JIRA based on lable created date and Schduled releaseed date feild

I am using useing JIRA 6.4

 

Thanks in Advance

1 comment

Rachel Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2017

 

Hi Sunil,

I checked the labels table in the database, and the label creation date isn't there.  The date the label was added to an issue might be accessible, as part of the change history, but you'd need to query the database to get that.  I can't tell from your question if you're looking for a db query or JQL (JIRA Query Language), but I'll assume JQL for now.

Instead of label date, here's how you'd query for a label and for a value in a custom field called "Scheduled Release Date":

labels = maintenance and "Scheduled Release Date" >= "2017-01-01"

You can also do things like :

labels in (maintenance, upgrade)
"Scheduled Release Date" >= startOfYear()

More on all the cool things you can do with JQL is found here: https://confluence.atlassian.com/jirasoftwareserver071/advanced-searching-800707146.html  (For your version, 6.4, see: https://confluence.atlassian.com/jira064/advanced-searching-720416661.html)

One more thing:  When doing a "not" search with the label field, also consider issues with no label.  For example, to be inclusive, the query:  

labels = maintenance

should instead be:

labels != maintenance and labels is not empty

Hope this helps,

Rachel Wright

sunil kumar October 25, 2017

Thanks Rachel it worked

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events