Workflow documentation?

I'm having lots of trouble with the workflow documentation.  Right now I'm trying to link an issue to another one.  I finally guessed the command as "relates to" (with a space).  I assume it's right because it turned purple.  However, it seems to want a . afterwards and anything I put after that just stays red.  Here is what I've tried:

var newIssue = loggedInUser.createNewIssue(project.shortName); 
newIssue.summary = "Technical Debt for " + issue.getId();
newIssue.relates to.issue.getId();
newIssue.relates to.issue;


"issue" is blue on line 2 but red on line 3 and 4.

I can't find "relates to" anywhere in the documentation.  I really can't find anything I look for.  Is there a comprehensive command index somewhere that I'm missing?  The one I'm using doesn't seem to be complete: http://confluence.jetbrains.com/display/YTD5/Workflow+Language+Reference
0
3 comments
hey Scott,

I understand your frustration and I apologise for any inconvenience the doc caused you. I'll look into the problem.

As for completion for the particular workflow methods, I'd recommend after '.' please try to invoke code completion feature by Ctrl+Space, to view available suggestions.
Also, workflow editor supports Ctrl+P to invoke suggestions for possible parameters of a method.


workflowScreenForScott.png
0
Avatar
Permanently deleted user
Thanks for the tip, it helps a lot.  I had already determined .add is what I wanted, but the completion shortcut will help immensely!  I come from Visual Studio so I guess I'm spoiled that it does completion automatically :)
0
Scott, I'm happy to hear the tip helped. :)

Please don't hesitate to contact us if you have further questions.

--
Best Regards,
Kate
0

Please sign in to leave a comment.