You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have created a ScriptRunner fragment to display a button or menu item within a particular project. I have been trying to find the code to create either a new issue or a subtask when button or menu item is selected, without much success. Can anyone help?
Hi @Peter Ellis ,
You can achieve this by using two features of ScriptRunner for Jira. With fragments you can add the button as you already know, and then with Custom Rest Endpoints you can create an endpoint to create an issue, and point to that endpoint from your fragment.
Does this help?
Yes, I have seen those links, they don't help me.
You are absolutely right why duplicate a function that is already there? We have a large number of new uses that have been using another app that have moved over to Jira. To accommodate them we require either dedicated buttons or menu entries to create the new issues directly.
I can use the 'Constrained Create Issue Dialog' in Script Runner to present the new issue dialog but I also need it to create subtasks which the dialog wont do.