JIRA: Find all issues related to a user - jira

In JIRA, how do a find all issues related to a user, across all projects.
A simple query search yields only full text results. i.e. only issues where the name is mentioned and not if the name has been assigned, has reported, has been cc’d etc.
My intention here is to find tickets related to me for stock accounting.
I'm using JIRA 3.13.

assignee = currentUser() OR assignee was currentUser() OR reporter = currentUser()
This will suffice the query

Just had the same 'stock accounting' use case: If you like to get an overview of the issues where you were involved to, just go to the profile page of your user, and hit 'Activity'. All tickets you had been working on are displayed.
This seems to be an alternative for all who are also not able to do a query like
assignee was currentUser()
because their Jira does not support history searches on that field (like ours here).

Like Greg mentioned, you can use the "FIND ISSUES" -option. By default, you can only do searches by the issue reporter or by the assignee. But if your Jira installation has the Jira Toolkit plugin installed, you can run a search by participant. This is a good feature if you need to find the issues which you have helped to resolve, but aren't anymore assigned to you.

Click on Issues on the top, click New on the left bar.
Now, choose the reporter and assignee. Then switch to Advanced search.
Then you can change the AND to an OR and do the search.
e.g.
assignee = currentUser() OR reporter = currentUser()
(it would have been AND by default)

In JIRA, I need to find really all issues related to a user (me) including comments, assignee, reporter, watcher and status updates.
I've used filters with JQL and next query:
status changed BY currentUser() OR reporter = currentUser()
OR watcher in (currentUser()) OR assignee = currentUser()
OR assignee was currentUser() OR commentedByUser = currentUser()
ORDER BY updated DESC
Open filter page:
Switch to JQL
Enter query and click Search button.

You should be able to use the "FIND ISSUES" option across the top bar, select "New" to create a new filter (which by default spans all projects), and select your name from the relevant "Issue Attributes" dropdown boxes.

Open the JIRA web application/site in your browser and navigate to Issues (in header) > Search for issues, then enter your search criteria.

Related

How to get stories that are "In Progress" for a user using JIRA REST API?

I'm trying to get stories that are just in progress, using userName but it lists all the stories which were assigned to the user.
GET request :
URL - https://jira.com/rest/api/2/search?jql=assignee=spruthvi&fields=id,key,status
Is there any possible way to get the stories that are in progress when we search with userName
The below rest api query will give the issues that are in - "In Progress" and assigned to a specific user. This is tested on Jira Data centre V8.13.x
https://<jira-url>/rest/api/2/search?jql=assignee=<assigneeID>+AND+status=%22In%20Progress%22+order+by+duedate&fields=id,key
For more details refer Atlassian Example
You can execute this jql in issue navigator first to check whether you get the expected results. Then you can try with REST client.
assignee== OR reporter == AND status == 'In
Progress'
In Jira the user is involved in the issue in the form of an assignee or a reporter or a watcher or through any other custom field.

Find Jira issues that I assigned to someone else

Is there a way I can use JQL to find all Jira issues, that I assigned to someone else?
I see the assignee field, but I want to find a JQL, where I assigned a Jira issue to someone else other than me.
The CHANGED BY operator is what you are looking for.
Assignee CHANGED BY currentUser() will return any issue the current user has ever assigned to anyone, including themselves. This gets a bit tricky, as you want to only show issues which you have assigned to anyone other than yourself.
If you have never been the assignee of the issues, then simply adding Assignee WAS NOT currentUser() will return all issues which you have assigned to someone. However if you have ever been assigned to the issues, then they will not be returned.
I had a long think about this and couldn't come up with a perfect solution for if you had ever been assigned to the issues, just some crude approximations which had many exceptions. I suggest taking a look at the JQL Advanced Search Reference and playing around with it to see what works for you.
It's simple. Use the not-equal sign != instead of equal sign =.
assignee != currentUser()
or
assignee != currentUser() OR assignee is EMPTY (to include also unassigned issues)

Which jira tasks were assigned to me?

The requirement people assign me jira tasks to implement some issues or to fix bugs and when I have implemented the task, I assign the task to some tester.
Now I would like to find out, which tasks was assign to me in the current project / release to check the documentations. Any Idea how to do this? the "Assigned to Me" widget in jira shows me only the tasks, which are currently assigned to me.
Open Filter in JIRA. Create a filter with following query
assignee = currentUser() AND resolution = Unresolved order by updated DESC. It'll show you all the unresolved issues in JIRA, that's assigned to you. But make sure that you have logged into JIRA, with your credentials.

What is the correct JQL query if I want to search all projects of a particular jira user?

I tried the JQL query below but it does not work.
project is EMPTY AND assignee = johndew
The output I want is a list of projects of the user.
Jira users are not directly connected to Projects. They are working / assigned to Jira issues, which belong to a Project.
It can not expressed in just a JQL. But when creating an issue filter with JQL like assignee = johndew and then save it, like 'issues-johndew'. Then open one of the Jira Dashboards and add the Gadget Issue Statstics. Fill in the field Project or Saved Filter the value of the filter issues-johndew. Fill in the field Static Type Project.
This should give an overview of where John Dew is working on.
In Jira this is the shown as below

JIRA query to get number of issues per user

I want to have a list of all the users on my project and the number of issues assigned to him/her. Is there a way to do this in JIRA 5.2.11?
You could use a issue statistics dashboard gadget.
Click on "Add gadget" on your JIRA dashboard and select the "Issue Statistics" gadget. Then select the project you want to track and set the "statistics type" to assignee.

Resources