JQL "issue.property[development].commits > 0" not returning any results

The following JQL doesn't return any results, but I know for sure that there are issues that should be returned. 

project = "XXX" and issue.property[development].commits > 0

 

Is there any setting you need to enable in JIRA in order to query on issue.property[] values? I'm running JIRA 6.2.1 and Stash 3.10.0. 

 

Thanks!

2 answers

This widget could not be displayed.

That format of JQL is only supported in JIRA 6.4 and above. It is not a publicised feature due to the fact it has a number of caveats that impact its usability.

The information in JQL is only optimistically updated assuming you have JIRA and Stash connected via Applinks correctly (see https://confluence.atlassian.com/display/STASH/Linking+Stash+with+JIRA and https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Stash).

In certain cases, changes in Stash will not be updated in JIRA unless you manually view the issue or view it as part of release hub https://confluence.atlassian.com/display/JIRA/Checking+the+progress+of+a+version.

These cases are:

  • When JIRA is down or unreachable
  • When a repository is pushed to Stash with a lot of issues mentioned in the commits

Hope this helps explain things

It is doc'd though, if not well publicised: https://developer.atlassian.com/jiradev/jira-architecture/building-jira-add-ons/jira-entity-properties-overview . That page implies that is available from 6.2.

This widget could not be displayed.

I get back an empty dictionary if I make the request they list as an example. Though, I thought Stash was populating these properties? $ curl -u user:pass -X GET http://jira.myinstance.com:8080/rest/api/2/issue/ISS-33/properties/ {"keys":[]}

Well, but, at least you know which end has the problem now. Have you tried support?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

286 views 5 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you