cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
824
Views
0
Helpful
0
Replies

how to get job ID/alias of jobs within a job group programatically

We are trying to automate the export of job group/job definition from tidal in xml file, we know that you can use REST API to get job definition as xml.

by using http://localhost:8080/api/tes-6.0/Job.get/<Job ID/alias> 

but the problem is when you use it for group it does not tell you what are all the child of this job group. 

here is the output you get from REST API 

<entry><id>354</id><title>TestJOb</title><source>com.tidalsoft.webclient.tes.dsp.db.datatypes.Job</source><tes:job><tes:agenttype>6</tes:agenttype><tes:childrencount>6</tes:childrencount><tes:agentostype>1</tes:agentostype><tes:ownername>IDX_Workgroup</tes:ownername><tes:agentname>machinename</tes:agentname><tes:parentname>\Test</tes:parentname><tes:rerundependency>N</tes:rerundependency><tes:dependencylogic>1</tes:dependencylogic><tes:durationminimum>60</tes:durationminimum><tes:parentactive>Y</tes:parentactive><tes:unixprofile>0</tes:unixprofile><tes:type>1</tes:type><tes:normalexittorange>0</tes:normalexittorange><tes:estimatedmethod>1</tes:estimatedmethod><tes:predecessorsvalue>N</tes:predecessorsvalue><tes:isnotes>false</tes:isnotes><tes:historyretention>30</tes:historyretention><tes:jobdetailid>354</tes:jobdetailid><tes:durationestimated>60</tes:durationestimated><tes:trackingmethod>1</tes:trackingmethod><tes:active>Y</tes:active><tes:durationmaximum>60</tes:durationmaximum><tes:repeat/><tes:id>354</tes:id><tes:dirty> </tes:dirty><tes:ownerid>13</tes:ownerid><tes:fullpath>\Test\TestJOb</tes:fullpath><tes:concurrency>3</tes:concurrency><tes:isrunbook>false</tes:isrunbook><tes:excludeabnormalduration>4</tes:excludeabnormalduration><tes:inheritrepeat>Y</tes:inheritrepeat><tes:inheritoptions>Y</tes:inheritoptions><tes:disablecarryover>1</tes:disablecarryover><tes:normalexitfromrange>0</tes:normalexitfromrange><tes:successorsvalue>N</tes:successorsvalue><tes:inherittimewindow>N</tes:inherittimewindow><tes:lastusermodifiedtime>2013-05-13T00:47:30-0700</tes:lastusermodifiedtime><tes:allowrerun>Y</tes:allowrerun><tes:parentid>18</tes:parentid><tes:agentid>2</tes:agentid><tes:priority>50</tes:priority><tes:inheritagent>N</tes:inheritagent><tes:name>IDX.TestWebService</tes:name><tes:nearoutage>3</tes:nearoutage><tes:saveoutputoption>Y</tes:saveoutputoption><tes:alias>354</tes:alias><tes:allowunscheduled>Y</tes:allowunscheduled><tes:createtime>2013-05-12T23:32:05-0700</tes:createtime><tes:inheritcalendar>N</tes:inheritcalendar><tes:waitOperator>N</tes:waitOperator><tes:exitcodenormaloperator>1</tes:exitcodenormaloperator><tes:lastchangetime>2013-05-13T00:47:30-0700</tes:lastchangetime><tes:clientcachelastchangetime>2013-05-13T00:47:30-0700</tes:clientcachelastchangetime></tes:job></entry>

it gives you number of child in the group, but does not give further info like what are the JOb ID/alias of children.

we need this information to dynamically get job definition of all the jobs within a job group.

Any help much appreacited.

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: