Find Jira issues that I assigned to someone else - jira

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)

Related

Query that returns issues without parent in JIRA

I want to get all issues that don't have or have parent. I tried the following query for issues without parent: issuetype in ("Epic","User Story") AND "Epic Link" is EMPTY but I’m not sure this is returning what I expect.
I’m also looking for any place I can get a tutorial or information about the queries more generally. Thanks!
As for “all items without the parent”, there would be a couple of different behaviors here. Firstly, Jira treats Epics as a type of parent object, so you are on the right track for checking there. As well, if a ticket is if type subclass, it will have a parent. So if you are just looking for all of your “User Stories”, then you are best serviced by checking for that type.
issuetype in ("Epic","User Story") AND "Epic Link" is Empty and issuetype not in (SubTaskIssueTypes())
As for tutorials, the native Atlassian documentation is helpful for high level JQL advice and tips and tricks, however your workflow will often be something specific to your business, so answering questions like “How do I see what my Marketing team has due this week” will depend on how you have them interacting with the system (what issue types they work with, how they use Epics, which field is the most relevant due date, etc). Which is to say, there are probably best practices, but would take some careful thought as to how to best have it service your business’s needs in the future.
For starters, check out this blog-post from Atlassian, it’s not a bad place to begin.
https://www.atlassian.com/blog/jira-software/jql-the-most-flexible-way-to-search-jira-14

To find the JIRA Query to find no of tickets assigned

How to know the JIRA query forstrong text tickets assigned on someone in JIRA on a particular day?
Not 100% of what you are asking but if you are inquiring on the JQL to determine what issues were assigned to user Bob last Thursday where some may no longer be assigned to him this is not possible without a use of some sort of plugin. (Which may or may not exist)
For tickets currently assigned to Bob that is:
assignee = Bob
You can read more about Advanced Searching here.

Jira JQL that returns date of status change

I'm trying to use JQL to measure cycle times (the Control Chart has other issues), so I need to get the date that an issue changed status. I see that one can use the CHANGED keyword to filter issues that have changed status on certain dates, but I see no way to actually list the date of the change as a column.
Any ideas? How would you guys address this lack of visibility into cycle time data?
There is no simple solution available in JIRA at the moment. See the issue https://jira.atlassian.com/browse/JRA-12825 for the whole discussion. The argumentation of Atlassian is the following:
There exists a product Service Desk that implements the SLA feature expressed here.
There are reports and additional plugins available that give similar information to this. See the JIRA Suite Utilities which give you a UI for each issue to see the transition summary.
JQL (JIRA Query Language) was intended to select all issues that match a query, not to select special information to these issues. You have to use the configuration of the table, if it is included there as a field of the issue (which it is not).
In addition to the suggestions from mliebelt there is another at https://answers.atlassian.com/questions/128370/how-to-capture-date-of-state-change-in-jira. It requires JIRA Misc Workflow Extenstions and uses the "Copy value from field to field" function to capture the transition date in a custom field.
There is a plugin in Atlassian Marketplace called Time in Status just for that purpose. The plugin prepares a report on how much time each issue spent on each status or assignee.
Time in status is useless if need to count of Jiras that changed status on that day. Time in status widgets is useless for this

JIRA/GreenHopper: How to allow users to rank issues, but not change the fixVersion?

For reasons I won't go into here I need to stop developers from changing the Fix Version in JIRA without preventing them from changing the Green Hopper Ranking.
This is slightly complicated as Greenhopper allows you to change whether you are using the Schedule Issues or Resolve Issues permission for this stuff.
I've tried the following:
Set GH to use the Resolve Issues permission and revoked the Resolve Issues permission. This prevents users from changing both fields.
Set GH to use the Schedule Issues permission and revoked the Resolve Issues permission. This allows editing of Ranking, and blocks changing the Fix Version in the JIRA screens, so far so good. However it is still possible to change the Fix Version in the Green Hopper Planning board.
I've also investigated removing the Fix Version field from the JIRA screens, however you can still always change it in GH.
I'm out of ideas, so I'm hoping someone out there has worked out the answer for me :)
Forgot to mention - I'm using JIRA 4.1.2 with GH 5.1
Out of the box, what you describe can't be done. Atlassian has made clear that they won't be providing field level security as outlined in JIRA-1330.
That said, control of who can and can't set the fixVersion field is controlled by the Resolve Issue permission as noted here, though it appears you have gone down that route.
My question to you: are you using the fixVersion field? If so, how are you using it and when is it set? The answer to that is key to figuring out the right way to go.
A few possible ways to address this issue:
Control it via a workflow as outlined in this article
Control it via a template as outlined in this article
See if the Field Security Plugin might meet your needs
Having worked with JIRA long enough, I do know that I could cobble something together to make this a reality. It just is going to take time. For example, you might be able to use the scripting plugin to reset the fixVersion field if it has been edited by anyone without the permission to change it.
Depending on how important this is to you, you might want to retain a JIRA Consultant to come up with a solution for your need.

JIRA: Find all issues related to a user

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.

Resources