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

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.

0 votes



One answer

Permanent link

 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.

0 votes

Comments

Thanks Ralph. I will give it a try.

 

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
× 6,121

Question asked: Mar 03 '20, 9:43 a.m.

Question was seen: 916 times

Last updated: Mar 04 '20, 5:33 a.m.

Confirmation Cancel Confirm