Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

updatedBy() not working fully with API when providing dates

Franz Wallisch November 18, 2024

I am trying to use the updatedBy()-function in an API-Call (GET on search/jql).

It does work when I am not providing any date in the query. E.g.:

 

"issuekey IN updatedBy('*')" works (returns several issues)

while

 

"issuekey IN updatedBy('*','2024-11-11','2024-11-14')" is not working (returns zero issues).

The same query (with the dates) works just fine when executed in the search bar in the GUI, so by my understanding the issue lies with the API.

1 answer

1 accepted

2 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2024

Hi @Franz Wallisch 

Welcome to the community.

Please use issuekey IN updatedBy("*","2024-11-11","2024-11-11")

Double quotes need to be set.

Franz Wallisch November 18, 2024

Does not change anything.

issuekey IN updatedBy("*","2024-11-11","2024-11-14") does not return anything while

issuekey IN updatedBy("*") is working just fine.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2024

Hi @Franz Wallisch 

On my instance and other instance I manage, this provides results.

How does you API call looks like, does issuekey IN updatedBy("*","2024-11-11","2024-11-14") give results in GUI?

Franz Wallisch November 18, 2024

I am using this query in addition to cf[10086] ~ "K*". During testing I found this behaviour:

This API-JQL-Query works: issuekey IN updatedBy("*") AND cf[10086] ~ "K*"

This API-JQL-Query also works: issuekey IN updatedBy("*","2024-11-11","2024-11-14")

This API-JQL-Query does not work: issuekey IN updatedBy("*","2024-11-11","2024-11-14") AND cf[10086] ~ "K*"

Is this intented?

Edit: This query also works: issuekey IN updatedBy("*","2024-11-11","2024-11-14") and cf[10086] IS NOT EMPTY

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2024

Hi @Franz Wallisch 

So all works except, issuekey IN updatedBy("*","2024-11-11","2024-11-14") AND cf[10086] ~ "K*"

This could be simply valid as you want to find issues in an updated range by anyone and the custom text field should start with K

If there is no issue in the time frame matching this, no results will be given.

So this is expected

Franz Wallisch November 18, 2024

GUI2.png

This is the query in the GUI working as intended.

Franz Wallisch November 18, 2024

Found the problem: my API-JIRA-Account does not have the same permissions as the one in the GUI.

Thanks for your help!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events