Working with links in workflow
Hello,
I'm stuck. My question is a probobly simple, but I'm new at JS.So is there any method or expression to define linked issue's ID? For example to show issues ID in the pop up message I use this:
workflow.message(workflow.i18n('IssueID:' + issue.id));
But I want to display issue ID of some linked issues. E.g. Issue A-123, has link 'Relates To' issue A-200. When I define link with
var relatesTo = issue.links['relates to']; and use relatesTo.id in a message I get with result: IssueID: undefined.
Please help. Thank you i advance.
Please sign in to leave a comment.
Hi Irina, thanks for your question.
First of all, please don't use the method i18n() in your workflows - it's a special method used for built-in localization. It can't be used in custom workflows, unfortunately.
Second, please check that you have correctly written the requirements section: https://www.jetbrains.com/help/youtrack/incloud/requirements.html
Could you please share the full code?
Thanks.
Hello Liubov,
Thank you for such a fast reply. Probably some post magic worked for me this time, because I found a solution for my case - I used some part of code from default dependencies workflow. Now my workflow works as I want it to.
As you advised I removed i18n() method from my script as well.
Thank you very much.