JiraService 0.0.9
See the version list below for details.
dotnet add package JiraService --version 0.0.9
NuGet\Install-Package JiraService -Version 0.0.9
<PackageReference Include="JiraService" Version="0.0.9" />
paket add JiraService --version 0.0.9
#r "nuget: JiraService, 0.0.9"
// 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
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 | Versions 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. |
-
.NETStandard 2.0
- Atlassian.SDK (>= 12.4.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- OpenSSL.PrivateKeyDecoder (>= 1.3.0)
-
.NETStandard 2.1
- Atlassian.SDK (>= 12.4.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- OpenSSL.PrivateKeyDecoder (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Implement Cascading Select Field Type with Parent-Child assignment