Hi,
I'm using the API to try to get issues that have time estimate equal to some value. I have no success doing this. Any ideas. This is what I used:
https://yyyy.atlassian.net/rest/api/3/search?jql=timeestimate%3D3600
This does seem to filter something but actually it is still bringing me issues with time estimate different than 3600
Help appreciated
When you say you are getting time estimates that are different than 3600, which field are you seeing that contains that data?
Based on my experiments in searching through the UI it seems like the "timeestimate" field in the filter corresponds to Remaining Estimate.
Hi @Trudy Claspill ,
Actually in the test I was looking for Original estimation of the issue. I want to find certain cases where Original Estimation is a certain value. I had tried with timeoriginalestimate without success and then tried timeestimate without success neither. see the result of one of the response:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For Original Estimate try "originalestimate". That works in the JQL in the UI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you find this in the UI...the field name...I was going arround and did not see it...sorry newbie question...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using the Advanced Search functionality ...
...I started typing in "original" and JIRA provided possible matching fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just adjusted with same result:
https://xxxx.atlassian.net/rest/api/3/search?jql=originalestimate%3D3600
this returned issue ID 50478 when I looked it up had 1w 2d 4h
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GRRRR I know the problem.... I was transforming to seconds and the query is in minutes.... I got it to work using minutes...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill ,
Would you know why this querry brings mi 20k records but when I execute it on the issue navigator I get 3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please provide an image from the UI that shows the query and that the results are just 3 records.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just guessing, but maybe the API is pulling the issues where the Original Estimate field has no value at all vs. the UI where you have to explicitly include a criteria to get the issues with no value.
createdDate>=2021-01-01 and (originalEstimate<=0 or originalestimate is empty) and status!=Done ORDER BY created DESC
Without the extra criteria in the UI only the issues where an Original Estimate value has actually been set will be retrieved. If no value was explicitly set in the issue in the UI, then the field is considered empty rather than <=0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill ,
You RULE. Yes the empty worked and now the UI brings exact same amount than the API. I would have never figured it our. I was all day testing changing the date and other fields values/format with no results...
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.