Skip to main content
lgaertner
Level 9
Mar 10, 2023 1:37 PM UTC
Question

API: Convert Issue to task (convertToTask)

Hello,

 

I want to convert an issue to a task using the API. Therefore I found the action "convertToTask". But using this leads to a different behaviour than using "Convert to task" on an issue directly in Workfront.

I am using a custom form on the issue which is also available for tasks. I would like to attach the form to the created task as well what works, if I add the parameter "categoryID". But is it also somehow possible to keep all values entered into the custom form?

Or is it meant that these have to be inserted again manually afterwards? What exactly does the API function "convertToTask" do if no data is transferred from the issue?

 

Does anybody have any experiences with converting issues to tasks or projects using the API?

 

Regards

Lars

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

4 replies

Richard_Le_
Community Advisor
Community Advisor
Mar 10, 2023 2:10 PM UTC

Hi,

 

Converting an issue to another object via the API does not automatically carry over the custom data from the originating issue - annoying right! 

 

Unfortunately, you would need to read the custom fields on the originating issue and map them over to the custom fields on the task/project in a separate update record module within your fusion scenario (assuming you are using Fusion).

 

Best Regards,

Rich. 

Translate
lgaertner
lgaertnerAuthor
Level 9
Mar 13, 2023 10:08 AM UTC

Hello Rich,

 

thank you for your answer. I was wondering, what exactly this action already does in the conversion process in in contrast to creating the whole stuff on your own. So when calling this action without any parameters than the new task's name, it does not even create a connection between the old issue and the newly created task...

Translate
lgaertner
lgaertnerAuthor
Level 9
Mar 13, 2023 10:45 AM UTC

Sorry, that was wrong. I added 

 

"options": [ 'preserveIssue', ]

and now it works. 

Translate
Rafal_Bainie
Community Advisor
Community Advisor
Mar 13, 2023 7:23 AM UTC

I can only confirm what Rich wrote

Translate