It's all about the answers!

Ask a question

How can I script Jazz/RTC using Groovy?


Nick Edgar (6.5k711) | asked May 07 '14, 4:04 p.m.
JAZZ DEVELOPER
edited May 29 '14, 3:09 p.m.
I have added a wiki topic showing how to run scripting type tasks against Jazz/RTC using Groovy and our Java client API: https://jazz.net/wiki/bin/view/Main/GroovyScripting

There's only one example there at the moment: a PrintTimelines.groovy script that prints the iterations for a given project area.  There are some others at https://jazz.net/wiki/bin/view/Main/JRubyScripting that could be easily adapted to Groovy. 

Accepted answer


permanent link
Geoffrey Clemm (30.1k33035) | answered May 08 '14, 12:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 29 '14, 3:10 p.m. by Nick Edgar (6.5k711)
Adding an "answer" so this question does not show up in the list of unanswered questions.
In particular, Nick's self answer is:

I have added a wiki topic showing how to run scripting type tasks against Jazz/RTC using Groovy and our Java client API: https://jazz.net/wiki/bin/view/Main/GroovyScripting

There's only one example there at the moment: a PrintTimelines.groovy script that prints the iterations for a given project area.  There are some others at https://jazz.net/wiki/bin/view/Main/JRubyScripting that could be easily adapted to Groovy. 
Nick Edgar selected this answer as the correct answer

Comments
Nick Edgar commented May 29 '14, 2:58 p.m.
JAZZ DEVELOPER

I've added a script that produces a report of all build engines and their status, grouped by project area.

e.g.
build engines in project area 'Jazz Foundation':
  jcb.sorbld19.1: Idle
  jcb.sorbld19.2: Busy
  jcb.sorbld19.3: Idle
  jcb.sorbld28: Inactive
  jcb.sorbld29: Idle (warning - not contacted within threshold of 3 minutes)
  jcb.sorbld30.1: Busy
...


Nick Edgar commented May 29 '14, 3:10 p.m.
JAZZ DEVELOPER

There's also a similar script for build definitions and their status. 

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.