YouTrack newIssue - set Tags
Hi all - I'm hoping to add a link to one of my Apps to open a new Issue within the current context, which is a Project + one or more Tags. The “newIssue” path lets me specify the project by name, but I can't find a way to set the tag/tags using this URL - any ideas?
youtrack-url/newIssue?project=MyProject&tag=8-7
Thanks in advance
Please sign in to leave a comment.
Hi,
I'm Sergey from the YouTrack team.
You can use the issue template action to generate a URL with predefined fields and tags. Please ensure that users accessing this URL have the necessary permissions for the specified tag.
Hi Sergey,
Thanks - I'll look into this, but we want it to be more dynamic if we can - the context will change on each invocation (multiple customers etc); is there no way to set it in the URL?
Ah - you have actually answered this; the template URL contains the tags in the format expected by Youtrack, which we can update programatically.
For future reference, it is done like this, with “+” replacing any spaces in the tag name:
&c=tag+tagname
&c=tag+Tracked+Project
Thanks for your response.
Indeed, you are free to update the parameters in the URL to adjust the template data. The template action is just a quick way to generate such a URL with the correct scheme.