It's all about the answers!

Ask a question

Cancellation Saving Artifact By Client extension API For RM


ho le (132) | asked Dec 06 '16, 11:23 a.m.
 Hi everyone,

Currently, I have a requirement that is validation artifact before saving. if artifact is invalid, this artifact will not be saved.

I am using Client Extension API For RM to listen action from artifact ex: RM.Event has ARTIFACT_SELECTED, ARTIFACT_SAVED,....

And I have checked with ARTIFACT_SAVED, it will callback function if saving artifact is success.
I can not validate before saving with ARTIFACT_SAVED, because artifact is saved before api return callback function.
I just handle inserted artifact and result (success, fail, cancel,.....) 
So my question is do we have any API to cancel saving artifact or config validation artifact? 

Please help me.
Thank you so much

Best regards,

Ho Le

Accepted answer


permanent link
Dominic Tulley (38114) | answered Dec 06 '16, 1:15 p.m.
Today we don't have an API that allows you to intercept a save and veto it.  As you have correctly noted the event you looked at is ARTIFACT_SAVED (past tense, telling you the save has completed) and your code there cannot intervene to prevent the save.
ho le selected this answer as the correct answer

Your answer


Register or 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.