Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fb=FogBugz('http://fogbugz.unity3d.com')
- fb.logon(LOGIN, PWD)
- IXSTATUS_RESOLVED_DUPLICATE = 42
- case = 2
- duplicate_of = 1
- res = self.fb.search(q=str(case), cols='ixBugEventLatest')
- latest_event = res.ixbugeventlatest.string
- api = slumber.API("http://fogbugz.unity3d.com/f/api/0")
- payload = {
- 'ixDuplicateOf': int(duplicate_of),
- 'ixStatus': IXSTATUS_RESOLVED_DUPLICATE,
- 'sCommand': "resolve",
- 'ixBugEventLatest': int(latest_event)
- }
- # post to http://fogbugz.unity3d.com/f/api/0/cases/2?token=fb.token
- api.cases(case).post(payload, token=fb._token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement