Hi experts! We are sending automatic Slack messages when a new version is released with something similar to this:
Hi team!! New version <https://company.atlassian.net/projects/XXX/versions/{{version}}/tab/release-report-all-issues|{{version.name}}> was released on {{version.releaseDate.mediumDate}}. Nice work!
Release description: {{version.description}}
Please, ask any questions in this thread :point_down:However, now there is a rich text field replacing the description as the main description of the release in the UI. How could we use data in that field? See the following image for clarity
The method I use to get the action id is
import com.opensymphony.workflow.loader.ActionDescriptor
import com.atlassian.jira.workflow.WorkflowTransitionUtil
import com.atlassian.jira.workflow.WorkflowTransitionUtilImpl
import com.atlassian.jira.workflow.IssueWorkflowManager
...
WorkflowTransitionUtil workflowTransitionUtil = (WorkflowTransitionUtil) JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class);
IssueWorkflowManager issueWflwMan = ComponentManager.getComponentInstanceOfType(IssueWorkflowManager.class);
....
int actionID
def actionName = "Cancelled" //transition name
Collection<ActionDescriptor> coll = issueWflwMan.getAvailableActions(subtaskIssue, user);
for(ActionDescriptor ad : coll) {
if(ad.getName().equals(actionName)) {
actionID = ad.getId();
}
}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.