It's all about the answers!

Ask a question

updateing execution schedule using rest api, set start date to 1/1/1970 also change the time


MJ Ranji (173) | asked Oct 17 '23, 12:10 p.m.

Hi there,
any help appreciated :)

fetching xml  data of jobscheduler with its ID and with/without any change updateing the url will cause "start date" and time in web interface change to 1/1/1970 and time will be converted based on that, eventhough if fetching the xml again activationdate tag is the sam as original. it is not possible to update start date using rest put  method by changing activation date, the other parameters like weekday and expiry is possible to update but not start date, if manually from web interface set the start date , it will set the time also to original value!!!

url to do put and get : https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Vt1tEUcDEe6Rc9ReI76vaw/executionsequence/urn:com.ibm.rqm:executionsequence:6

xml body to send in put method:

<?xml version="1.0" encoding="UTF-8"?>
<ns2:jobscheduler xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/"
  xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns10="http://open-services.net/ns/core#"
  xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1"
  xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns21="http://www.w3.org/1999/XSL/Transform">
  <ns2:projectArea href="https://localhost:9443/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_Vt1tEUcDEe6Rc9ReI76vaw" alias="QmAutoTest+%28Quality+Management%29" />
  <ns4:identifier>https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Vt1tEUcDEe6Rc9ReI76vaw/jobscheduler/urn:com.ibm.rqm:jobscheduler:5</ns4:identifier>
  <ns2:webId>5</ns2:webId>
  <ns4:title>sched_6</ns4:title>
  <ns6:updated>2023-10-14T16:49:54.130Z</ns6:updated>
  <ns4:creator ns1:resource="https://localhost:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/UserName">UserName</ns4:creator>
  <ns2:nextTriggerDate>2023-10-18T11:30:00.996Z</ns2:nextTriggerDate>
  <ns2:weeklyschedule>
    <ns2:activationDate>2023-09-19+02:00</ns2:activationDate>
    <ns2:expiryDate>2024-01-31+01:00</ns2:expiryDate>
    <ns2:triggerTime>13:30:00.000+02:00</ns2:triggerTime>
    <ns2:weekday>WED</ns2:weekday>
    <ns2:weekday>SAT</ns2:weekday>
  </ns2:weeklyschedule>
  <ns2:scheduledjob>
    <ns2:operation>execute</ns2:operation>
    <ns2:executionSequence href="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Vt1tEUcDEe6Rc9ReI76vaw/executionsequence/urn:com.ibm.rqm:executionsequence:6" /></ns2:scheduledjob>
</ns2:jobscheduler>

Be the first one to answer this question!


Register or to post your answer.