It's all about the answers!

Ask a question

run an script on approval completion


Roger Layani (5313238) | asked Nov 12 '12, 4:51 a.m.

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?

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Nov 12 '12, 5:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

One other answer



permanent link
Roger Layani (5313238) | answered Nov 21 '12, 5:21 a.m.

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!


Comments
Ralph Schoon commented Nov 21 '12, 6:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 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.