Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New task: Code in documentation does not work #19

Closed
pswetz opened this issue Nov 19, 2018 · 4 comments
Closed

New task: Code in documentation does not work #19

pswetz opened this issue Nov 19, 2018 · 4 comments

Comments

@pswetz
Copy link
Contributor

pswetz commented Nov 19, 2018

This code throws exception, taken from documentation.

var parent = self;
var newChild = store.NewWorkItem("Task");
newChild.Title = "Brand new child";
parent.Relations.AddChild(newChild);

return parent.Title;

@pswetz
Copy link
Contributor Author

pswetz commented Nov 19, 2018

[Information] Found a request for a new Task workitem in
[Error] Save failed:

After discussion issue is likely workitemstore line 177 and 277 usage of RuleContext.TeamProject parameter from request is not populated (and not what should be used).

@pswetz pswetz changed the title Code in documentation does not work New task: Code in documentation does not work Nov 19, 2018
@giuliov
Copy link
Member

giuliov commented Nov 19, 2018

Should be fixed in 0.4.2

@pswetz
Copy link
Contributor Author

pswetz commented Nov 20, 2018

New error logged in #21 when testing this.

@giuliov
Copy link
Member

giuliov commented Nov 22, 2018

This is merged in master

@giuliov giuliov closed this as completed Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants