Link issue with ticket from helpdesk
Hi,
I would like to ask if what i want to do is possible.
I have first “normal” project where I have set automatic import issues from github (shortcut BDGI), and second helpdesk project (shortcut BH), where we creating tickets what needs to be done. My workflow is, I receive ticket in helpdesk, create issue in github, and then issues is imported to youtrack second project. I would like to automatically add links from issue to ticket. At project where import is set, I activated workflow “Reffered issues” (https://www.jetbrains.com/help/youtrack/cloud/workflow-referred-issues.html), but even if I mention BH-<ticket number> in description of github issue, or add comment with that project ID, link at issue is not created.
Basically, I would like to reach this state of issue automatically by mention ticket ID in github issue (description or comment):

But I got only this:

Any ideas why “Reffered issues” workflow isn't working here? Is it working only with issues in same projects? Is there any chance it could work cross-projects?
Thanks in advance for any reply.
Please sign in to leave a comment.
Hi Pavel,
The “Referred issues” workflow does indeed only catch references to issues within the same project. There's a corresponding issue in our tracker: JT-79476. You can change this behavior by slightly adjusting the regular expression in the workflow code. For example, you can change line #29 like this:
However, the caveat is that the workflow won't be triggered on importing issues and comments from GitHub even if you add
ctx.issue.becomesReported
to the workflow guard. To work around this, you can change the GitHub import script in YouTrack so that it tags newly imported/updated issues. Then, create an on-schedule workflow rule that will search for issues with the tag used by the import script, analyze the description and comments for issue links, and then remove the tag.Just so you know, one of the planned improvements for YouTrack is automatically listing all the issue references in a special section next to other issue links, see JT-57866. You can already see the inward mentions part implemented in our tracker. There's no ETA as the feature is still in active development, but hopefully, it'll get released relatively soon.