JiraService 0.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package JiraService --version 0.0.9                
NuGet\Install-Package JiraService -Version 0.0.9                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JiraService" Version="0.0.9" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JiraService --version 0.0.9                
#r "nuget: JiraService, 0.0.9"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JiraService as a Cake Addin
#addin nuget:?package=JiraService&version=0.0.9

// Install JiraService as a Cake Tool
#tool nuget:?package=JiraService&version=0.0.9                

Jira Service

This project is added some extra features to help c# developers that they used Atlassian.SDK.

Features

  • Independent Jira issue model
  • Use predefined fields
  • Create new own custom field
  • Serializable issue model
  • Testable issue model

Installation

Install JiraService with Nuget

  Install-Package JiraService
  or
  dotnet add package JiraService

Usage/Examples

For creating a new model first create a class that inherited from IssueModel

public class ChangeIssue : IssueModel
    {
        
        [CustomField("Case Number", defaultVal: "no={0}")]
        public HyperLinkJField CaseNumber { get; set; }

        [CustomField("Primary Customer")] public CascadeSelectOptionJField PrimaryCustomer { get; set; }

        [CustomField("Customer", "customfield_10808")]
        public InsightJField Customer { get; set; }

        [CustomField("Change Type")] public TextJField ChangeType { get; set; }

        [CustomField("Epic Link")]
        public EpicLinkJField EpicLink { get; set; }
    }

If you want your own custom field like EpicLink creates a new type that inherited from JiraCustomFieldBase, like:

    public class EpicLinkJField : JiraCustomFieldBase
    {
        private string _value;

        public string Value { get { return _value; } set => _value = value; }

        protected override string[] SetJiraValue { set => _value = string.Join("", value); }

        protected override string GetJiraValue => _value;
    }

And now use your type easily in all of your projects it is type-safe and testable.


// initializing jiraService (GetJiraService has a contract **IJiraService** to make it possible to use mock in test projects.)
var jiraService = new JiraServiceCreator().GetJiraService(setting.HOST, setting.USERNAME, setting.PASSWORD);

// initializing Model
var change = new ChangeIssue();
change.ProjectKey = "test";
change.Type = "test";

//Create
var key = await jiraService.Issue.Create(change);
//Update
await jiraService.Issue.Update(change);
//Delete
await jiraService.Issue.Delete(key);

Acknowledgements

Authors

Contributing

Contributions are always welcome!

License

MIT

Roadmap

  • Create a CLI for creating projects

  • Generate models by CLI

  • Linq Query

Feedback

Please add a new issue or add a new discussion if you have any feedback.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.13 714 2/21/2022
0.0.12 434 2/20/2022
0.0.10 418 2/19/2022
0.0.9 434 2/16/2022
0.0.8 439 2/13/2022
0.0.7-Alpha 192 2/9/2022
0.0.6 406 2/8/2022
0.0.5 441 2/7/2022
0.0.4 421 2/6/2022
0.0.3 427 2/6/2022
0.0.2 449 2/2/2022

Implement Cascading Select Field Type with Parent-Child assignment