I'm trying to get round the limitations of Jira Service Desk automation by using Scriptrunner for the approval functionality, The main reason for this is we want to include custom fields in the emails that go to approvers so they can get all the change ticket info in the email then click approve/decline from there.
Dear <% out << issue.assignee?.displayName %>,
The $issue.issueType.name $issue.key with priority <% out << issue.priority?.name %> has been assigned to you.
Implementation Details: <% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Implementation Details")) %>
<% out << issue.reporter?.displayName %>
I've gotten as far as adding the example on the scriptrunner quick reference and modifying it a bit, it's even including the workflow buttons
Unfortunately every time I try and click the workflow button I get errors.
I've even tried removing the approval function from the statuses to see if that was the issue but nope, same issue, thought it might have been the post function being to high in the post functions order but nope, made it the last thing in the list and still the same result.
I'm not much of a coder at all, have to go scraping for examples whenever I want to do something like this, so, is there a way I can get this working?
Only other option is to try and copy the contents of 5 custom text fields to the bottom of the description and let the JSD approval emails do it, only problem is I cant find a script for that either XD
Any help would be appreciated
I have Done button (which is global transition ) in workflow. When I use a getWorkflowButtons.call(), jira send to approver Accept, Reject and global Done buttons. Is any way to send message without Done buton? I add condition to Done transition issue.status.name != 'In review' but this doesn't help.
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events