Invoke a rest based service when saving an RTC work item from javascript
My question appears to be very simple but I am having a hard time getting a straight answer. I have a custom work item in RTC. When the work item is changed to a certain state by the user, I want to automatically invoke a rest based service. I assumed this would be done from a snippet of javascript that I add during the customization of the work item.
I just want to know if this is possible and if so, how do I do it. Are there examples anywhere?
One answer
If you are using script-based attribute customization, you may consider using dojo.xhrGet or some other functions within dojo/request, and then you would also need to parse the result which is in either XML or JSON. Due to the limitation of script-based attribute customization, I am not sure whether it can actually work though.