About addWorkItem Follow
In https://www.jetbrains.com/help/youtrack/incloud/v1-Issue.html#addWorkItem it's said that you can define the type of the work item to add to an issue.
How do I define a specific type for the work item when using addWorkItem?
Thanks,
Please sign in to leave a comment.
In fact, it is not a straight-forward action now: you need to get project WorkItemTypes and find a correct one by name:
var type = entities.WorkItemType.findByProject(ctx.issue.project).find(function(t) {t.name === 'Development'} ).first();
Oh my. Thank you. :)