How to execute a python script when a work item moves to a certain state
I have written a python script that calls rest api and gets data. It then stores this data in an xml file and attaches it to a work item.
I want to be able to execute this python script when a work item is moves to a certain state. For example, creating a work item is in state 'new', so once the work item moves to 'in progress' i want this python script to be executed.
Has anyone done something similar or can point me in the right direction to achieve this.
One answer
You will have to write your own JAVA advisor or follow up action as a server extension. From that extension you would have to call your Python Script.
See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ especially the Extensions Workshop for reference. There are examples for work item save server extensions on the blog above.