How do I use the javascript API to get information from an artifact without it causing a history edit?
Been trying to figure it out for awhile, Still new to Jazz. Should I subscribe to the event? or is there a way to get the information in the artifacts without it? Still not sure if its the subscribing thats causing the issues or not.
To be more descriptive, Its an api using xml that searches Jazz for a specific term and creates links to it. The problem it has is that when it creates links to the artifact, it also sets it as modified in the history which is behavior I dont want happening. Im not sure if I can share the snippet of code, but what seems to happen is that subscribing to the event is whats causing the history to be modified rather then just referenced which is something Im not quite sure how to fix.
Thanks!
2 answers
If you expect answers, I would suggest to provide reasonable questions and information.
Comments
Sorry, Ive tried to make it as specific as I can
All you have mentioned to date is a Javascript API and that you are using XML.
Presumably got some information about this API from a WIki page or other online reference. What is the URI of that Wiki page or online documentation page?
What Javascript classes/methods of the API are used?
Provide some sample code of what you have tried so far.
I think they might talk about this API: https://jazz.net/wiki/bin/view/Main/RMExtensionsMain but I am not sure since it seems to be too complicated to provide such information.
Comments
Thank you! So if the code finds the term its looking for in the artifacts it creates a link and modifies the history which is wanted, but the problem is that when it doesnt find the term its looking for, it doesnt create a link, but still modifies the history and creates an audit log entry. So in order to avoid that, Im not sure if its the event subscription that causes the audit log entry, or if it is the .getattributes function that causes the entry. Im sorry if what Im saying doesnt really make sense, I wasnt involved in the development of this code, so Im not sure exactly what everything does yet.
Comments
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 29 '23, 7:21 a.m.Your question is rather vague. I suggest you reference which API (URL to page that describes it) you are talking about and give specific detailed examples of what you're trying and the results.
Bassem El-Tawil
Jun 29 '23, 3:42 p.m.I am specifically using xml, Thanks!