Get all JIRA groups and store them in 2 files
coded in C#
Development platform : Visual studio 2019
use Microsoft Net.Core
use Json package (newtonsoft.Json v12.0.3)
allow to make a rest api request to jira server it is based on rest api library of Atlassian ref : https://docs.atlassian.com/software/jira/docs/api/REST/8.13.2/ the excutable code when lounched ask some questions for starting the corresponding rest API
- Download the nuget package Get-All-Jira-Groups at https://www.nuget.org/packages/Get-All-Jira-Groups/ and insert the package in your project or download the nuget package at : https://github.com/guihen01/Rest-API-Get-All-Groups/packages/611796
OR
- Copy and paste from this github repository the Program.cs code in your C# project , compile (build and execute)
OR
- Download the published application on this site :https://github.com/guihen01/Rest-API-Get-All-Groups/releases/tag/new
https://github.com/guihen01/Rest-API-Get-All-Groups/blob/main/Screenshots/Capture2.PNG
include the reference : using System.Threading.Tasks; & using GetGroups;
in your code : use : await Pg.GetAllGroups(); (GetAllGroups() method is packed and assembled in the dll : and included in the Pg class
https://github.com/guihen01/Rest-API-Get-All-Groups/blob/main/Screenshots/Capture5.PNG
- URL of the jira server whith the port number : ( ie : exemple : http://localhost:8080 )
The program then make a concatenation with /rest/api/2/groups/picker The result is the end point on which to send the REst API httprequest :: http://localhost:8080/rest/api/2/groups/picker
- auth : username and password of a granted account to jira server
- The program create a json formated file , it includes all the Jira groups
name of the file created : List-groups.json
exemple (json formated sample) : at : https://github.com/guihen01/Rest-API-Get-All-Groups/blob/main/Screenshots/List-groups.json
- The program create a text formated file , (json to string) it includes all the Jira groups
.
name of the file created : List-groups.txt
exemple (text formated) : at https://github.com/guihen01/Rest-API-Get-All-Groups/blob/main/Screenshots/List-groups.txt
it is distributed as nuget package
reference to download the package is : https://www.nuget.org/packages/Get-All-Jira-Groups/
Is is also distributed as a published application (git .zip file)
Get-All-Jira-Groups.zip
The zip file is a compressed folder that include the published application
publishing profile : https://github.com/guihen01/Rest-API-Get-All-Groups/blob/main/Publishing%20Profile.PNG
configuration : Release / any CPU
Target framework : netcoreapp3.1
Deployment mode : Framework dependent
Target Runtime : Portable