Atlassian has announced the timeline for Connect's phased end-of-support.
From Sep 17, 2025, only Forge apps can be submitted to the Atlassian Marketplace. All new extensibility features will be delivered only on Forge.
Have an existing Connect app? Find out how to incrementally adopt Forge from Connect.
You can build this with Forge
Workflow Post Functions are available in Forge, our next-generation cloud app development platform.
Already have a Connect app? Start adding Forge features in less than an hour.
Post functions carry out any additional processing required after a Jira workflow transition is executed, such as:
Your add-on needs to declare the URL that Jira will invoke with an HTTP POST after the transition is completed. Each POST will include the issue and transition details and the configuration of the workflow function. It will also include the authentication headers that allow the add-on to validate the authenticity of that request.
Often, the workflow post function will allow some degree of configuration of its behavior. As an example: You may want to react to a state transition only if the issue has a particular label, and you want the project administrator to configure that label. For this purpose, three additional URLs in the descriptor allow you to declare the pages that will show:
All URLs are relative to the base URL that is declared in the connect-container element of the descriptor.
The create and edit urls will need to present a form with relevant configuration for the post function. In order to persist this information with Jira, the page needs to include a snippet of Javascript to facilitate saving this data.
1 2AP.require(["jira"], function(jira) { // When the configuration is saved, this method is called. Return the values for your input elements. jira.WorkflowConfiguration.onSave(function() { var config = { "key": "val" }; return JSON.stringify(config); }); // Validate any appropriate input and return true/false jira.WorkflowConfiguration.onSaveValidation(function() { return true; }); });
For more information, see the javascript API.
The new workflow editor supports this module in the same way. You can use same custom UI resources and the same functions for managing configuration.
If you want to detect whether the new editor is being used, check for whether a workflow context object is provided as the second callback argument in the getWorkflowConfiguration function. The second callback argument will be undefined in the old workflow editor.
1 2jira.getWorkflowConfiguration( (config, context) => { const isNewEditor = typeof context !== 'undefined'; } );
For a full add-on example, see the workflow post function example add-on.
1 2{ "modules": { "jiraWorkflowPostFunctions": [ { "description": { "value": "My Description" }, "view": { "url": "/view" }, "edit": { "url": "/edit" }, "create": { "url": "/create" }, "triggered": { "url": "/triggered" }, "name": { "value": "My Function" }, "key": "workflow-example" } ] } }
Type | string |
Max length | 100 |
Required | Yes |
Pattern | ^[a-zA-Z0-9-]+$ |
Description | A key to identify this module. This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be globally unique. Keys must only contain alphanumeric characters and dashes. The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on key and module key. |
For example, an add-on which looks like:
1 2{ "key": "my-addon", "modules": { "configurePage": { "key": "configure-me", } } }
Will have a configuration page module with a URL of /plugins/servlet/ac/my-addon/configure-me
.
Type | i18n Property |
Required | Yes |
Description |
A human readable name. Represents a string that can be resolved via a localization properties file. You can use the same |
1 2{ "value": "My text" }
value |
| ||||||||
i18n |
|
Type | URL |
Required | Yes |
Description |
The relative URL to the add-on resource that receives the HTTP POST after a workflow transition. It includes the authentication headers that enable the add-on to validate the authenticity of the request. Your app must return a success status code in response to the HTTP POST request. If your app doesn't send a success status code the request will retry, as described in the webhook retry policy. To understand the type of content that is sent to the add-on after a state transition, you can use the Connect inspector tool. The Connect inspector is a service that lets you generate a temporary Atlassian Connect add-on that you can install in your Cloud development environment to inspect the content of event messages. |
Here is an example POST body. For brevity, some fields have been removed or truncated.
1 2{ "configuration": { "value": "Configuration from the post function edit page" }, "issue": { "fields": { "assignee": { }, "attachment": [], "comment": { }, "components": [], "created": "2013-11-18T17:56:23.864+1100", "description": null, "duedate": null, "environment": null, "fixVersions": [], "issuetype": { }, "labels": [], "lastViewed": "2013-11-18T17:56:31.793+1100", "priority": { }, "project": { "avatarUrls": { }, "id": "10000", "key": "TEST", "name": "Test" }, "reporter": { }, "resolution": { }, "resolutiondate": "2013-11-18T17:56:31.799+1100", "status": { }, "summary": "The issue summary", "updated": "2013-11-18T17:56:23.864+1100", "versions": [], "votes": { }, "watches": { }, "workratio": -1 }, "id": "10000", "key": "TEST-1", "self": "http://issues.example.com/jira/issue/10000" }, "transition": { "from_status": "Open", "to_status": "Resolved", "transitionId": 5, "transitionName": "Resolve Issue", "workflowId": 10000, "workflowName": "classic default workflow" } }
url |
|
Type | URL |
Description |
The relative URL to the add-on page that allows to configure the workflow post function on creation. |
url |
|
Type | i18n Property |
Description |
The description of the workflow post function. This will be presented to the user when they add a new post function to a Jira workflow. Represents a string that can be resolved via a localization properties file. You can use the same |
1 2{ "value": "My text" }
value
|
| ||||||||
i18n
|
|
Type | URL |
Description |
The relative URL to the add-on page that allows to configure the workflow post function once it exists. The edit URL can contain the following context parameters:
|
url |
|
Type | |
Description |
The relative URL to the add-on page that shows the read-only configuration or summary of the workflow post function. The view URL can contain the following context parameters:
|
url |
|
Rate this page: