Dear all ,
i have created an automation where upon creation, i am assiging the ticket to me, change a field and put a comment.
Then i am triggering an email and i am trying to get the ticket number in the subject or the email body.
However , i am not able to get the result i wish for.
Here is my workflow :
I have read following threads :
But i could apply the solutions.
Thanks,
Dimitris
Hi Nathan,
I still have the same question and the only thing I could find that would return all-to-all transitions (on top of normal regular transitions) is IssueWorkflowManager (https://docs.atlassian.com/software/jira/docs/api/8.4.3/com/atlassian/jira/workflow/IssueWorkflowManager.html).
If you use this code in the ScriptRunner script console (server), you can test it yourself:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.workflow.IssueWorkflowManager
def issueWFMngr = ComponentAccessor.getComponentOfType(IssueWorkflowManager.class)
def currentIssue = ComponentAccessor.issueManager.getIssueByCurrentKey("KS-1") // your issue key here instead of KS-1
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def trueAvailableActions = issueWFMngr.getAvailableActions(currentIssue, currentUser)
return "Available actions/transitions: ${trueAvailableActions.collect {it.name + ': '+ it.id}}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.