Cancellation Saving Artifact By Client extension API For RM
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
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
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.