/
HTTP Request Workflow post function for API Calls

HTTP Request Workflow post function for API Calls

Step-1

Go to Jira project configuration ** In Workflows tab Click EDIT Icon.

In Post Functions tab section, Click Add Post Function.

 

Step-2

Choose HTTP Request API Invoke Function and Click Add.

 

Step-3

Configure Post Function and Click Add.

Here is example to use Issue fields in JSON payload:

{ "tracking": "{issuekey}", "team": "{customfield_10201}", "customer": "{customfield_10200}", "release": "{fixversions}", "owner": "{assignee}" }

Note. You can find custom field ID at, Issues > Custom Fields > Click Edit > You will find in URL.

Supported System fields:

summary, description, key or issuekey, type or issuetype, status, priority, components, labels, fixversions, affectsversions, assignee, reporter, environment

To generate basic access token with username and password:

$ python >>> import base64 >>> string = 'username:password' >>> data = base64.b64encode(string.encode()) >>> print(data) b'ZGF0YSB0byBiZSBlbmNvZGVk' >>> //your basic access token: ZGF0YSB0byBiZSBlbmNvZGVk

 

Step-4

Review and Click Publish.

 

Step-5

Transition Issue and verify if HTTP Request triggered with response notification in issue comment.

 

Related content

ILA DevOps Suite for Jira
ILA DevOps Suite for Jira
Read with this
Workflow to invoke Amazon Lambda Function
Workflow to invoke Amazon Lambda Function
More like this
ILA Tools Suite for Confluence
ILA Tools Suite for Confluence
Read with this
Jenkins Job Run Workflow Post Function (Cloud)
Jenkins Job Run Workflow Post Function (Cloud)
More like this
Workflow to Invoke Amazon Lambda function
Workflow to Invoke Amazon Lambda function
More like this
Jenkins Job Run Workflow Post Function
Jenkins Job Run Workflow Post Function
More like this