I have a custom field (Account) and a custom field (Status - Happy, Sad, Indifferent). We will create a task for each time we reach out to the account to gauge their status. The status could change each time we reach out to the account, but I want to know the last status for each account.
On Nov 1 we reached out to the account and they were Sad. On Dec 1 we reached out to the account and they were Happy. I need to know that they are now Happy.
Any recommendations on the JQL I could use to find the last resolved record for an Account?
JQL filters return issues pnly, therefore getting specific issue data like the history of changes of a custom filed along the time is not possible with JQL.
However, there are alternative ways to get such information via the SQL for JIRA:
select c.fromvalue as "Previous State", c.created as "Date" from issues i inner join isssuechanges c on c.issueid=i.id where c.field='Status' and i.key=? order by c.created desc
would provide the history of the Status custom field along the time given a particular issue key = ?
You might also want to show the results above on a table in the Issue Detail View by creating a custom field for the SQL query above with SQL for JIRA Custom Fields extension.
Or maybe you prefer to create a report for some issues by using the SQL for JIRA Reports and Gadgets.. extension.
Oops, unfortunately, not available for Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would model this like this:
This every reach out is maintained separately, and can handled in JQL as sub-task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is your Account field a select list or a text field? The query will look slightly different depending on the field type.
Your JQL statement will also depend on how you are tracking dates. Do you have a separate custom field for tracking the date that you reached out to the customer or do you only have JIRA's standard date fields (e.g. Created, Updated, Resolved)?
In this example I'll assume the Account field is a select list and you have a Contact Date custom field.
Project = MYPROJ AND Account = "Customer Co." ORDER BY "Contact Date" DESC
Your most recent contact with that account should then appear as the top issue in the result set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.