Idea ID: 2877105

Influence pasted items via workflow script

Status: New Idea

Current behaviour of Copy/paste:
- an event xxx.paste is triggered 

- but you can´t influence the pasted item via script because no object id´s are known at this moment

Needed behaviour:
For any pasted item (e.g. items in testlab, defect,...) we need to have a possibility to change some fields.
Due to the fact that there are too many needs of different customers to have a general solution it would be great if we can influence these pasted items via script. This could give the needed flexibility to modify it for your special needs.

Examples:

Copy Defect: 
We need to set the status of the pasted defect to New and clear the "detected in cycle" field in the pasted defects.

Copy Folders in Testlab:
We need to clear the "target cycle" of the folders in the pasted items (folders and included testsets) automatically.
Currrently it works only "correct for us" if the target folder is connected to any cylce (then the pasted items will inherit the cycle from the parrent folder).
If the target folder has no cycle connection the pasted items will keep their target cycle connection which is bad for us (because we have to be very restrictive in these details and not everyone can change the outdated cycle)

  • I saw that the same problem with moving items. 
    There is no event triggered and so it´s hard to know that it was moved and to react correctly (e.g in my case I have to delete the release cycle connection if the father folder is not connected to any cycle)

  • After several work around tests: If there will be a final solution and there would be the possibility to know the source project where these items cam from (in case the source is another project) it would be a amazing additonal feature - But only PrioB.
    Much more important is a reliabale list of pasted item-id´s.

  • Just to be completed: 
    It would have to work for one and more items (If you copy/paste a bulk of items)