Rally Software

Expand all | Collapse all

Query against multiple users at the same time.

Jump to Best Answer
  • 1.  Query against multiple users at the same time.

    Posted 11-20-2018 12:53 AM

    Trying to run a single query on the dashboard based on open/assigned tasks against multiple users at once.

     

    I can query against user 1, no problem (2 tasks assigned)

    I can query against user 2, no problem (2 tasks assigned)

     

    However, when I query against both users at the same time I can't get all of the open tasks (4 total) that should show up as expected.

     

    Below is my query that I'm attempting to use. I've tried "AND" in various spots but nothing seems to work.

    ((Owner.UserName = "user1@name.com") OR (Owner.UserName = "user2@name.com") AND (State != Completed))

     

    Thanks for your time,

     

    Ryan



  • 2.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 04:26 AM

    Ryan,

     

    The paranthesis rules can get you in these types of queries.

     

    You will need to just update your query to be:

     

    (((Owner.UserName = "user1@name.com") OR (Owner.UserName = "user2@name.com")) AND (State != Completed))

     

    Here is the information from this help page:

     

    You can add as many conditions as you need. Parentheses rules may be different than what you expect. For each condition that you add, you need to put a new ( at the beginning, and each condition after the first must end with )). For example:

    ((((Project.Name = "Blue Team") AND (Owner.UserName = "tom@acme.com"))
    AND (Iteration.Name = "October Phase One")) AND (Tags.Name = "Critical"))

     

    Hope that helps!

     

    Michael



  • 3.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 11:02 AM

    Michael,

     

    I thought that was the case as well yesterday but when I apply that query I get no value returned...only an error that states the following:

     

    "Based on your selections, no work item data was found."

     

    Ryan



  • 4.  Re: Query against multiple users at the same time.
    Best Answer

    Posted 11-20-2018 11:20 AM

    Hi Ryan,

     

    I just tried what Michael suggested and it worked, but there are double quotes around the 'Completed' that are needed. The convention is:

     

    (((A) OR (B)) and (C))

     

    Where

    A = Owner.Username = "UserName1"

    B = Owner.Username = "UserName2"

    C = State != "Completed"

     

    Together it gives you:

     

    (((Owner.Username = "UserName1") OR (Owner.Username = "UserName2")) AND (State != "Completed"))

     

     

    Can you copy this and try. If not working, please send us a screenshot of the error.

     

    Thanks,

    Sagi



  • 5.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 12:30 PM

    Sagi,

     

    Thanks for info. I fixed the error and yes that's what I've tried last night but it only gives an output of 2 tasks not 4 that I actually need to track.

     

    Ryan



  • 6.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 12:32 PM

    It is showing the "user1" info or "user2" info...depending on who comes first within the statement you placed above, but not both at the same time.



  • 7.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 12:56 PM

    Here is what it looks like for me. You can see the query, then you see the results in the Custom List app, where I have a list that includes tasks of both owners. (I only erased the usernames used as this is a public page)

     

    Can you please share these same screens so we see your query and results.

     

    Thanks,

    Sagi

     

     



  • 8.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 12:59 PM

    Yes, I can see that as well but I only see 2 tasks where I should really see 4 total because each user currently has 2 assigned to them.

     

    Are you possibly free to run a webex session to assist?



  • 9.  Re: Query against multiple users at the same time.

    Posted 11-20-2018 03:06 PM

    Thank you for opening that support case. I took ownership of that case and replied to you about webex times. Let's continue there.

     

    Thanks,

    Sagi