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

run an script on approval completion

we are using RTC as defect tracking and git as SCM.

I would like to associate a Work Item  Approval completion (state approved) with an external script to update our git repository

Has someone  any idea how to implement a such feature?

0 votes


Accepted answer

Permanent link
Hi Roger,

as far as I can tell, there is no such Participant (follow up action) available out of the box. You could have to code a Server extension. https://jazz.net/library/article/1000 shows how that is done as a workshop. I try to blog about API that I come across here: http://rsjazz.wordpress.com/. There are several posts that could be interesting to you, for example how to access approvals. You could launch the script using the Java process API.

 
Roger Layani selected this answer as the correct answer

0 votes


One other answer

Permanent link

Ralph Thank for guidance

I have written a java program using JavaAPI to approve from outside RTC

I have the idea to gain the approval email template and add an approve button in his content

the requester request approval in RTC

the approver get approval notification and directly approve from email form

In parralel this update our git repository on approved changeset.

All this works fine!

0 votes

Comments

Thanks for the feedback, you might want to accept the answer that helped.

PS: doing it from outside is often a good idea. You can schedule such programs forexample running a JBE. Instead of addind a button to request approval, ou might want to consider use the API to add the approval in a participant.


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
× 10,927

Question asked: Nov 12 '12, 4:51 a.m.

Question was seen: 5,292 times

Last updated: Nov 21 '12, 6:37 a.m.

Confirmation Cancel Confirm