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

How to Restrict Attribute Updates Using RM API

I have a script that listens for the RM.Event.ARTIFACT_SAVED event and updates attributes.

Is there any way, using the RM API, to detect which attributes were changed during a save, or to prevent my code from running unless a specific attribute was updated?

0 votes



2 answers

Permanent link
Hi,

At this point you do not have possiblity to check what attribute was changed when artifact was saved.

I suggest opening IBM "Idea" - Request of Enhancement for this.

0 votes


Permanent link
The ARTIFACT_SAVED event fires after the save happens, so it's too late to see what attributes were modified. There are two options worth trying:

 - the ARTIFACT_SELECTED event fires when a user selects an artefact, which they have to do before they can edit it. You could watch for that event and capture the ID and specific attribute value, and then use that to compare the ID and value after the save
 - you could use the Reportable REST API to check the last revision of the artefact to see what was changed. Use something like:
/rm/publish/text?resourceURI=<resource>&history=true
to get the history of the artefact. You could even add the time range parameter to only get the most recent

0 votes

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
× 11,085

Question asked: Aug 11 '25, 5:14 a.m.

Question was seen: 1,049 times

Last updated: Aug 11 '25, 7:08 p.m.

Confirmation Cancel Confirm