How to find issues that at some point has been assigned to you?

后端 未结 12 1430
青春惊慌失措
青春惊慌失措 2020-12-04 05:48

We use Jira extensively in our project, but I often have a hard time finding issues, that I know, I have been working on earlier. Usually, if some case is reported, that see

相关标签:
12条回答
  • 2020-12-04 06:26

    I think the most sensible approach is to search the issue-history. The only thing, that is not logged there, is who accessed the issue (just watching, without changing anything).

    But you can't search the ticket-history without database access (as far as I know, please correct me if I'm wrong)

    So, to search all issues with "someUserName" in the issuehistory, you have to inner join the table changegroup (and maybe the table changeitem from there).

    Example:

    select ji.id,issuenum,summary,creator,assignee,ji.created,updated,c.id as histid,c.author from jiraissue ji inner join changegroup c on ji.id=c.issueid where c.author like 'someUserName';
    

    c.id as histid ==> this is the number/id of the entry in the (issue-)"History" tab

    Meaning: if there ever was a change by the user "someUserName" it is logged in the History and it will be listet with this query

    The following example will just list every disting issue, where the "myusername" was found in the History after the date 20180501:

    select distinct ji.id,issuenum,summary,creator,assignee,ji.created,updated,c.author from jiraissue ji inner join changegroup c on ji.id=c.issueid where c.author like 'myusername' and ji.created > '2018-05-01T00:00:00.000';
    

    I annotated the necessary relation here:

    0 讨论(0)
  • 2020-12-04 06:28

    This is meanwhile possible by means of the JIRA Query Language (JQL) operator 'WAS', which has been introduced in JIRA 4.3 and extended in JIRA 4.4 to cover assignees and reporters as well, for example:

    project = "Angry Nerds" and (assignee was 'johnsmith' or reporter was 'johnsmith')
    
    0 讨论(0)
  • 2020-12-04 06:29

    From menu select Tempo->Reports

    Select date-range

    and you should see report.

    0 讨论(0)
  • 2020-12-04 06:30

    So there are 3 scenarios: 1 - I changed it in some way - assignee changed by [UserName], 2 - I changed the status ( closed it, whatever) - OR status changed by [UserName], 3 - I still have it - OR assignee = [UserName]

    So the whole query (assuming that the changed statement is allowed is:

    assignee changed by [UserName] OR status changed by [UserName] OR assignee = [UserName]

    0 讨论(0)
  • 2020-12-04 06:31

    General-purpose query for whichever 'current user':

    assignee was currentUser()
    

    This filter can be conveniently shared & anybody can put it on their dashboard, etc and it will return results specific to them.. Not supported on all old JIRA versions though.

    This was my most-requested JIRA feature ever.

    0 讨论(0)
  • 2020-12-04 06:31

    was is not supported to assignee field when I tried recently. You must use CHANGED, FROM, TO keywords to filter.

    I'm using something like this:

    project = MindBlowingProject AND (assignee in (currentUser()) OR assignee CHANGED from (currentUser()) OR reporter in (currentUser())) ORDER BY updated DESC
    
    0 讨论(0)
提交回复
热议问题