Hi everyone,
in Jira 9+ all Transition-Buttons are now inside a Workflow-Dropdown.
We don´t really mind this but in some cases/projects we really want to separate a button and put it right next to the Workflow-Dropdown or the Assign-Button.
On top of that we like to create a second button which do something else like redirect to a link. This should be possible with Scriptrunner Fragments but i wasn't able to create something like this. I kinda have now two questions regarding buttons:
1 - Is there a solution to set a transition-Button next to the transistion-dropdown? Maybe using fragments? Dont really want to buy another third-party app.
2 - Using fragments is it possible to create a "custom-web-item-Button" right next to the transition-dropdown?
In the fragments configuration there is field "What section should this go in" with dozens of options. With the option "jira.issue.tools" i was able to create a button but it is... well next to the tools buttons in the issue view. Not exactly what i want. Anyone some ideas?
Thanks!
Cheers
Adam
Hello Patrick,
Thank you for raising this question.
Using Scriptrunner, I believe you will need to use the module Custom JQL Functions and perform the following steps:
- Use CommentManager.getLastComment(Issue issue) to obtain the last comment for each issue.
- Then, you can use Comment.getBody() to obtain the comment text.
- Finally, you can parse the content to search for the mention format, which is stored like this: [~username]. Once you extract this, you can compare the mentions to the argument passed to the JQL function.
Please, let me know if it works for you.
@Petter Gonçalves - Thanks for the quick feedback. I'll probably try that at some point, but I'm very rusty on Groovyscript so I'll need to wait until I've time to sink my teeth into it. In the meantime, if anyone else has already done something this awesome, feel free to share the love, otherwise I'll post what I build when I get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.