How an I cancel a change request using REST? Is it just a matter of updating the 'state'? If so, what is the 'state' value for cancelled? What other fields do I need to update in order to cancel th change request?

drewtarr
Giga Contributor

I am trying to cancel th change requestwith the following fields:

      current_time = time.strftime("%Y-%m-%d %H:%M:%S")

      userID = raw_input("Enter User ID (LDAP): ")

      close_notes = "TEST CHANGE - CANCELLED"

      closed_by = userID

      payload['state'] = 8

      payload['closed_at'] = current_time

      payload['close_notes'] = close_notes

      payload['closed_by'] = closed_by

When I make a REST PUT call, I get a 200 status back.

However, the only field that appears to be changed is the 'close_notes'

What am I missing?

5 REPLIES 5

anukuldat
Giga Contributor

Hello @Gopi46 

Did you get resolution.

 

Thanks