Forums

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

issuekey in UpdatedBy does not display correct results

Bharath Ram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2024

Hi All,

 

(issuekey in UpdatedBy(name,2024-01-01,2024-07-31) AND issuetype=test)  returns only 5 records even though the user had created many issues between this date range

meanwhile if try 

 (issueType = Test AND assignee was in (name) AND createdDate >=2024-01-01 AND createdDate <=2024-07-31) this displays correct number of records.

 

Unable to figure why UpdatedBy is not pulling all records as , as per documentation it will consider creating an issue also as an update.

 

Can anyone please advise how can i debug this further

 

Thanks,

Bharath

1 answer

0 votes
Trudy Claspill
Community Champion
August 12, 2024

Hello @Bharath Ram 

Welcome to the Atlassian community.

Those two queries are not requesting the same data, so you can't really compare the results.

issuekey in UpdatedBy(name,from-date,to-date) will get all the issues created or updated by the specified user within that date range.

Adding  "and issuetype=Test" to the filter will limit the results to only the issues that are currently Test issue types.

 

issueType = Test AND createdDate >=2024-01-01 AND createdDate <=2024-07-31

This query will get all issues that are currently Test issue types that were created within the date range, regardless of who created them. It also will not retrieve Test issue types that were created earlier than the specified date range but updated within the range. That is a significant difference from the first query.

Adding "AND assignee was in (name)" to the filter will check for the current Assignee of the issue. It has no inherent relationship to who created the issues. And we've already determined that the second query is not retrieving "updated" issues.

 

Since the queries are designed to retrieve entirely different data you can't really compare the results.

Let us back up a step and ask "what problem are you trying to solve"? Please explain to use in sentences, not JQL, what you want to include in your query results.

Bharath Ram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2024

Thanks @Trudy Claspill

 

I wanted to get the count of Test for a particular user "User1" who has either created tests within the date range or he has updated any of the field in issueType = Test within the date range.

Now the user has done updates to this issue, updated an attribute from Manual to fully automated, but this does not come in the results of issueKey in UpdatedBy(User1)

When i click edit for the issue i am able to see this attribute configured as a Mandatory field and hence any changes to this field should be considered as Update as per my understanding. So wanted to resolve this gap of results not coming in UpdatedBy even though the update was done.

Apologies if i am missing anything as I am new to Jira.

Regards,

Bharath

Trudy Claspill
Community Champion
August 14, 2024

Hello @Bharath Ram 

According to the documentation for the updateBy() function:

https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-functions-reference-939938746.html

"Search for issues that were updated by a specific user, optionally within the specified time range. An update in this case includes creating an issue, updating any of the issue's fields, creating or deleting a comment, or editing a comment (only the last edit). "

Did the user update the field within the date range you have specified in the function parameters?

 

Is Test an issue type native to Jira, or is that a custom issue type being provided by a third party plugin? That might impact the results of the filter.

 

What version of Jira are you using? You should be able to get that information by clicking on the Help button (labeled with a question mark) near your avatar in the upper right corner, and then selecting About Jira.

Suggest an answer

Log in or Sign up to answer