Call "Apply command" dialogue from workflow
Hi everyone. I am looking for a way to call the “Apply Command” dialogue from a java script workflow explicitly similar as `issue.fields.required(…)` does when it fails. Is there a way to do it?
What I want to achieve is that the dialogue opens if a new issue has been created but its parent isn't set or doesn't have a specific type.
First I simply wanted to use `workflow.check(…)` to trigger a prompt that tells the issue creator to set a proper parent. But the problem with that approach is that I couldn't figure out how to set a parent if you add a card via the `+ New Card` symbol on a board. This gives just a small issue creation dialogue where I can set fields, description etc. but not the parent.
Any tips are welcome :)
Please sign in to leave a comment.
Hi!
I'm Sergey from the YouTrack team.
I'm afraid, there's currently no specific workflow method that can accommodate this case. If I get your point, this feature request should help cover it: https://youtrack.jetbrains.com/issue/JT-52446/Add-an-ability-to-invoke-a-command-dialog-with-predefined-commands. If so, please feel free to vote for this issue. This helps us gauge how much impact this feature will have on our customer base, and you’ll also get subscribed to the issue’s notifications. To do so, sign in to JetBrains YouTrack and hit the thumbs-up icon.
In the current UI, one can invoke a command dialog (just start typing or CTRL + ALT (OPT) + J if focused on the summary) and use it to link the card. Additionally, we are currently reworking the card dialog UI and plan to include the control to link cards in the card creation window. The updated UI will be included in one of the upcoming major releases. I may also suggest following our blog where we post all the major YouTrack updates so that you won't miss it.
If you have any questions, please let me know.