looking for a way to update task assignment info using Java
Hi Box Experts,
I am writing a very simple piece of code where in I am looking to update the resolution state of the task
in a java code when the task is assigned. Unfortunately, I am unable to find any API/way to do this.
The closest thing I could find was this reference from box documentations:
public void updateInfo(BoxTaskAssignment.Info info)
The only fields that will be updated are the ones that have been modified locally. For example, the following code won't update any information (or even send a network request) since none of the info's fields were changed:
BoxTaskAssignment taskAssignment = new BoxTaskAssignment(api, id); BoxTaskAssignment.Info info = taskAssignment.getInfo(); taskAssignment.updateInfo(info);
Parameters: info - the updated info
Now assuming that if I modify the info object of resolution state, and updating it using updateInfo i can do the job,
I am stuck at how do I modify Info state? There are no setter functions available, only getter. I can do it using CURL commands
but there is no documentation for setting Info.
Any Pointers?
Thanks!
-
Hello ,
I think this is something you should manage through a ticket as it seems something missing on the library (https://community.box.com/t5/custom/page/page-id/BoxViewMyTickets). There box personnel will be giving you a quicker support.
Though, I think maybe you can workaround it through the parseJSONMember method (http://opensource.box.com/box-java-sdk/javadoc/src-html/com/box/sdk/BoxTaskAssignment.html#line.197) but wouldn't be the cleanest way probably.
Thanks
サインインしてコメントを残してください。
コメント
1件のコメント