@PublicApi public final class

WorkflowTransitionContextUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.action.admin.workflow.tabs.WorkflowTransitionContextUtils

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Utility methods relating to tabs in the workflow transition configuration UI.

Summary

Constants
String COUNT_KEY The context key for the number of items in this tab.
String TRANSITION_KEY The context key for the workflow transition.
String WORKFLOW_KEY The context key for the workflow.
Public Methods
@Nonnull static Optional<ActionDescriptor> getTransition(Map<StringObject> context)
Returns the transition from the given context.
@Nonnull static Optional<JiraWorkflow> getWorkflow(Map<StringObject> context)
Returns the workflow from the given context.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String COUNT_KEY

The context key for the number of items in this tab.

Constant Value: "count"

public static final String TRANSITION_KEY

The context key for the workflow transition.

Constant Value: "workflow_transition"

public static final String WORKFLOW_KEY

The context key for the workflow.

Constant Value: "workflow"

Public Methods

@Nonnull public static Optional<ActionDescriptor> getTransition (Map<StringObject> context)

Returns the transition from the given context.

Parameters
context the context from which to obtain the transition
Returns
  • empty if the context is null or does not contain a transition under the key "{@value WorkflowTransitionContextUtils#TRANSITION_KEY}"

@Nonnull public static Optional<JiraWorkflow> getWorkflow (Map<StringObject> context)

Returns the workflow from the given context.

Parameters
context the context from which to obtain the workflow
Returns
  • empty if the context is null or does not contain a workflow under the key "{@value WorkflowTransitionContextUtils#WORKFLOW_KEY}"