Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

workItem Query on specific approver and specific approval type

 Hi,

Suppose I am using "Approval" type for Dev. approval and "Verification" for QA approval.
Now I want to create a query that will give me all defects that are pending for verification and are set for Dev. (so I will change the verifyier to QA - since Dev. shouldn't do it in my process)
The problem is that a query can select type of approval and name of approver seperately. no way to bind them and tell RTC to give me work item that this kind of approval is pending on that approver.

Hope I clarified myself enough, and will glad to have a solution!
Thanks,
Moti

0 votes

Comments

Moti, I am not sure what you want to do and where the problem lies. Can you describe the example data and what you see better? Can you provide a screenshot of your query?

Hi Ralph, Sure, this is complicated and I will try to describe: 


Two defects 1 and 2. Two contributors: "Dev" and "QA"
Two approval descriptor types: "Verification" and "Approval"
Defect 1 : approval pending on Dev, verification pending on Qa
Defect 2 : approval pending on Dev, verification pending on Dev 
 
My logic is that I don't want that Dev will do verifications, only approvals.
So I will try to find this wrong situation and correct it.
Logically, query would be: find all defects that has a verification that is pending on dev. (approv. descriptor type = "verification")
Currently I can do something like that (let's say "dev" is "Moti")
<ADDING SCREENSHOT>  

But this is wrong and will return both defect 1 and defect 2.
Since the interpretation of this query is: approval (of any type) by dev, and approval type is verification.

Is any way to COUPLE the two conditions?

Screenshot:

I just tried with 5.0 two work items one with an approval pending for me and one with a verification pending for me. It seemed to work first. However, looking a bit deeper, if I have a work item with an approval as well as a verification something breaks. The query returns the record if I am approver for the approval and someone else is approver for the verification.

I would assume that the query mechanism does not look nested. It looks if there is an approver and if there is a matching approval. it does not look if the approver is actually approver for the specific approval.

There are several work items around approvals. You might explain your case.

what is the wrapper?  AND?  here is my config of a similar

Hi Sam, I used the AND all must match.....

Here My query and output

If you look at 79 I am an approver, but for a verification - there is also an approval.


ah yes.. the approval test doesn't look at the approver of the approval record

showing 5 of 7 show 2 more comments

Accepted answer

Permanent link
Moti,

as per our discussion above, your observation seems to be correct and I am not aware how to fix that. You might want to open a work item.
Moti Wertheimer selected this answer as the correct answer

1 vote

Comments

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Jul 28 '14, 7:45 a.m.

Question was seen: 3,464 times

Last updated: Jul 29 '14, 4:07 a.m.

Confirmation Cancel Confirm