Expand my Community achievements bar.

Join us for our Coffee Break Sweepstakes on July 16th! Come ask your questions or share your use cases on Creative Briefs for a chance to win a piece of Workfront swag!
SOLVED

OpTask bulkMove documentation

Avatar

Level 4

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

I can't find anything explaining how it works.

Thanks,

Rob

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 9

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

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

Avatar

Level 4

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