Is there any way to make reports based on updated field instead of created when adding series?
Asked by Internal Support:

Good morning,

Is there any way to make reports based on updated field instead of created? Why updated field is not shown in predefined series?

When I want to make a graphic to show the tickets with updated date, which is something very important I think..., the report's system don't let you do just that.

Thanks in advance.


Answers:
author: Ligia Merciu
body: Hi,

If you have defined your statuses as belonging to status categories, probably, you'd better use something like - this displays the issues that have changed statuses in the last day:

IN PROGRESS:

```
statusCategory = "In Progress" AND status changed AFTER -1d
```

or, more generally, for whatever changes have been made:

```
statusCategory = "In Progress" AND updated >= -1d
```

Obviously, you can use

```
statusCategory = Done 
```

as well, for your purpose.

Be aware that update date is a date time field, not a date field and this might complicate the things a little bit, if you want a more refined representation.

comments: author: Internal Support
body: Hi,

I have already tried to use the "updated \<= now()" in my jql sentences to cover my needs but it does not work... it does not shown the tickets that have statuses updated.

This is my jql sentence that I labeled as Tickets IN PROGRESS:

issuetype in (Bug, Incident, Support) AND status in ("Work in progress", "In Progress", Pending, "Waiting for customer", "Waiting for support") AND updated \<= now()

But it still only shows me the tickets based on created field and not the updated field...

Thanks.


author: Ligia Merciu
body: Hi,

I really believe that all updates were done before "now()", so it's absolutely normal to have no filtering for this.

For statuses updates, use that

```
... status changed AFTER...
... status changed BEFORE...
```

with either a fix date or a negativ interval or one of startOf ...(), endOf...() functions


author: Nic Brough -Adaptavist-
body: Which reports are you looking at? What are they running off in the background?

comments: author: Internal Support
body: Thank you for the quick response.

What I want to do is two queues, "IN PROGRESS" and "RESOLVED", in each queue, I am including 5 and 2 different status tickets to graph respectively.

This is de JQL filter I'm using:

IN PROGRESS(JQL filter):

issuetype in (Bug, Incident, Support) AND status in ("Work in progress", "In Progress", "Pending", "Waiting for customer", "Waiting for support")

RESOLVED (JQL filter):

status in (Closed, Resolved)

But the problem becomes when I want to graph based on updated ticket date and not created. For us, updated date is relevant, not the other one.

Is this possible or not?

Thanks in advance.


author: Nic Brough -Adaptavist-
body: Ok, filters find issues, they don't say anything about what is in the issues (there's a small exception in that you can store a sort order with them, but that's all they might say about what they find)

We need to come back to what reports you are looking at, as it's those which are choosing what to pull from the issues to show to you. What reports are they?


Tags: confluence-server

server