YouTrack App with Extension Points and Script
Current status:
- I just created a youtrack widget with Extension Points ISSUE_OPTIONS_MENU_ITEM
- in this widget, I create a function which do some rest api stuff (POST; GET)
- Then I click on the new issue option menu item; the script is running, but also the standard widget pop is displayed.
Question:
- is it possible that only the extension point calls the script and no standard widget pop up is called?
Please sign in to leave a comment.
Hi Rbuerkle,
Apps only let you extend the YouTrack functionality, but changing it or replacing with your custom logic is not possible. Can you please describe in more detail what task you address with the app? Perhaps, there's a different approach where the default popups won't get in the way.
Hi Julia Bernikova,
I want to have something similar to the YouTrack App “clone issue” or “clone issue as draft” in the issue option menu.
Description:
→ click on the custom item (ISSUE_OPTIONS_MENU_ITEM) in the option menu
→ backend script do some http stuff
→ no pop up is displayed
Is there any approach?
Hi Rbuerkle,
Thanks for the new details!
Since your task requires no UI, you don't have to add any widgets in the first place. Instead, add an action rule module to your app - there's no need to declare it in any specific way in the manifest. You can even go with a simple workflow rather than a full-fledged app if all you need is a custom action. The implementation will be similar to the “Clone issue” code, and the HTTP stuff can be handled by the http module.