OpTask bulkMove documentation | Community
Skip to main content
New Participant
April 9, 2024
Solved

OpTask bulkMove documentation

  • April 9, 2024
  • 1 reply
  • 629 views

Can anyone provide an example or documentation showing the bulkMove call for opTasks?

I can't find anything explaining how it works.

Thanks,

Rob

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lgaertner

Hello Robert,

 

this is not very difficult:

 

Just call (PUT) the endpoint OPTASK using the action bulkMove and provide the payload.

 

payload = { 'issueIDs': ['6576e4a600066fd1e6ee4a0d0080434e','6576e4a600066fd1e6ee4a0d0075234e'], 'projectID': '65958f4700103485e2aa550f553375b2', }

 

where issueIDs is an array of the OPTASK objects you want to move and projectID is the ID of the target project.

 

You can also use the action bulkMoveWithOptions where you also can provide the options as an array.

Unfortunately those are not listed anywhere...

 

For more information I absolutely recommend to have a look into the API explorer.

 

 

Regards

Lars

1 reply

lgaertner
lgaertnerAccepted solution
New Participant
April 9, 2024

Hello Robert,

 

this is not very difficult:

 

Just call (PUT) the endpoint OPTASK using the action bulkMove and provide the payload.

 

payload = { 'issueIDs': ['6576e4a600066fd1e6ee4a0d0080434e','6576e4a600066fd1e6ee4a0d0075234e'], 'projectID': '65958f4700103485e2aa550f553375b2', }

 

where issueIDs is an array of the OPTASK objects you want to move and projectID is the ID of the target project.

 

You can also use the action bulkMoveWithOptions where you also can provide the options as an array.

Unfortunately those are not listed anywhere...

 

For more information I absolutely recommend to have a look into the API explorer.

 

 

Regards

Lars

RobertDyAuthor
New Participant
April 10, 2024

Thank you @lgaertner 

So it seems we have to add this as raw JSON. I was trying to use the URL Encoded parameters which didn't work. 

I have looked at the API Explorer, it just wasn't clear were I put these parameters.

Your method works. 

Thank you

Rob