API JIRA ON-PREM (server) - Complete API Solution in VB.NET code for UiPath

Hello,
I present to you below a communication solution through REST API queries to JIRA on-premise (local server in your company).
I have created 7 files with sample working code. I currently use these workflows in my JIRA automation.

The activity packages available in UiPath Studio like UiPath.JiraSoftware.Activities
image
are based on cooperation with JIRA Cloud, where you can easily generate an API Token.
The solution below offers ready-made tools for companies that have a server version.

For JIRA automation you will need:
JIRA on-prem (I have version 7.0 Server in my organization) JIRA REST API Reference
JIRA permissions: password and login (as for standard user login)

UiPath Studio with additional packages in project:
Chilkat .NET Class Library (x86) [chilkat-win32: ver. > = 9.5.0.83] or
Chilkat .NET Class Library (x64) [chilkat-x64: ver. > = 9.5.0.83]
Microsoft.AspNet.WebApi.Client
UiPath.WebAPI.Activities
System.Net.Http

Remember to add set of namespaces to Project Imports:
image

Thanks to the possibility of building an API query based on the Chilkat library, we can provide credentials in the form of user login and password for Jira.

Examples of using JIRA on-prem with the Chilkat library can be found here:
Main Site of examples: http://rest-examples.chilkat.io/default.cshtml
Sub-sites:
Jira Issues
Jira Project
Jira Schemes
Jira User

Sample VB.NET Code for JIRA Create Issue (POST API):

We process the response on JSON Object and extract the data we are interested in.

Important:
Jira supports the day format as standard ISO 8601. In UiPath Studio we need changing the ISO 8601 date notation from: 2011-12-13T14:30:00.000+02:00 to: 2011-12-13T14:30:00.000+0200
(removing the last colon from offset) with is accepted by JIRA.

Code for change notation: DateTime.ParseExact(in_errorDate,"MM/dd/yyyy HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture).ToString(dateFormat).Remove(26, 1)

Available workflows:
Jira_GET_Issue.xaml
Jira_GET_Issue_Fields.xaml
Jira_GET_Issue_Transitions.xaml
Jira_POST_Create_Issue.xaml
Jira_POST_Issue_Add_Comment.xaml
Jira_POST_Issue_Transitions.xaml
Jira_PUT_Assign_Issue.xaml

Use UiPath Project: API_JIRA_on_prem_UiPath.7z (20,8 KB)

5 Likes