I'm making a trigger that blocks some relationships establishments between items that belong to different projects. I wrote rules that raise the trigger when they are matched.
When a user establish or edit a relationship and the trigger is raised, the script tests if the source and the destination of that relationship belong to the same project. If not, it displays an error.
I have a problem when I edit 2 different types of relationships at the same time (before clicking on "Apply") and one of them should make the trigger raised and the other should not.
The problem is my script tests all the modified relationship fields (I use getDeltaFieldNames() from the LocalTriggerManager.ScriptIssueDeltaBean class).
Is it possible to get in the scipt only the field that raised the trigger ?