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

How to add trigger when closing work item as duplicate

We’re using functionality for defects regarding duplicate work items that we would like to have for tasks as well.

Here’s what we do:

1) Close a defect

2) Set the resolution to ‘Duplicate’ and hit the save button  

3) Jazz RTC 5.0.2 will now ask to provide the duplicate work item  

We need this behaviour for tasks as well.  

I added ‘Duplicate’ as a resolution for tasks. However, I can close the task, set the resolution to Duplication and save the work item. Jazz doesn’t ask for the duplicated work item in this case.  

I’ve been trying to find a hook/trigger that defines what happens when you close a work item and set the resolution to ‘duplicate’.  

Could you point me in the right direction on how to accomplish the same behaviour for tasks as for defects?

Thank you.

0 votes

Comments

 Thanks Sam,


In an environment with 300+ people we do have cases where we have the same work defined multiple times throughout multiple software groups. It's not our goal to do this though ;-) We do need the possibility to be able to flag a work item as duplicate and preferably have that triggered automatically when closing a task.


Accepted answer

Permanent link
this is hard coded. I opened enhancement https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/242467
to move it to a selectable plugin..

but in your case, duplicate task doesn't make sense to me.. unless you are telling me in your environment multiple people document the need for the SAME work over and over

Michiel Seuren selected this answer as the correct answer

0 votes

Comments

unfortunately, none of the documented extension approaches provide the ability to prompt for additional data like this operating does.

You could attempt to read the product source (most provided in SDK download bundle) to determine how the product does this.

Would be interesting to know. I don't know a solution either, unfortunately.

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: Jan 06 '15, 3:13 p.m.

Question was seen: 2,837 times

Last updated: Jan 07 '15, 11:05 p.m.

Confirmation Cancel Confirm