Issue Work Items Removal

Is there a way to remove work items programmatically from Issue.workItems? The documentation says it's a read-only Set.<IssueWorkItem>. Using Set.clear or Set.delete throws the 'Cannot find function' error.

 

Thanks,

2 comments
Comment actions Permalink
Official comment

Armando,

That is correct, this property is read-only as is, but you can programmatically add work items.

Our current vision is that this option is not required. If you require such functionality, please file a feature request at https://youtrack.jetbrains.com and describe your use-case.

Comment actions Permalink

Well, I guess the REST API Method (https://www.jetbrains.com/help/youtrack/incloud/Delete-Existing-Work-Item.html) could be a workaround.

Thanks again,

0

Please sign in to leave a comment.