Cake addin for integration with Jira Issue Tracker
Clone or download
Latest commit 3ac94c9 Dec 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Disable TestResult upload to AppVeyor Nov 18, 2018
src Bump version Dec 7, 2018
.gitignore Pin Cake version Mar 1, 2018
GitVersion.yml Fix GitVersion.yml Nov 18, 2018
LICENSE Initial commit Jan 13, 2018
README.md Implement creating a new Jira issue Dec 5, 2018
appveyor.yml Fix AppVeyor build Dec 5, 2018

README.md

Cake.Jira

NuGet Build status

Cake addin for integration with Jira Issue Tracker

Using it

In order to use the add-in just reference it as you would any other cake add-in:

#addin nuget:?package=Cake.Jira

After that you can use the aliases available.

Currently the add-in supports:

  • One alias for creating a version on Jira.

Usage:

Task("Create-Jira-Version")
  .Does(async () => {
    await CreateOrUpdateJiraVersion(
      new CreateOrUpdateJiraVersionSettings
      {
        Host = "https://your.jira.host.com",
        User = "JustAUser",
        Password = "SuperSecurePassword",
        Project = "ProjectKey",
        Description = "Something something bla bla bla lorem freaking ipsum",
        VersionName = "1.0.0",
        ReleaseDate = DateTime.Now
      }
    );
  });
  • One alias for moving all issues from one version to another:

Usage:

Task("Migrate-Issues-To-Version")
	.Does(async () => {
		await MigrateIssuesVersion(new MigrateIssuesVersionSettings{
			Host = "https://your.jira.host.com",
			User = "JustAUser",
			Password = "SuperSecurePassword",
			Project = "ProjectKey",
			FromVersion = "AnOldVersion",
			ToVersion = "ABrandNewVersion",
		});
	});
  • One alias for creating a new jira issue:

The properties Host, Project and Summary are required.

Usage:

Task("Create-Jira-Issue")
  .Does(async () => {
    var labels = new List<string>();
    labels.Add("Label A");
    labels.Add("Label B");

    await CreateJiraIssue(new CreateIssueSettings{
      Host = "https://your.jira.host.com",
      User = "JustAUser",
      Password = "SuperSecurePassword",
      Project = "ProjectKey",
      Summary = "Summary",
      Reporter = "Reporter",
      Description = "Description",
      Environment = "Environment",
      Assignee = "Assignee",
      Priority = 1,
      Type = 1,
      Labels = labels,
      DueDate = new DateTime(2018, 12, 24)
    });
  });

Contributing

This repo follows the Fork and Pull Request standard. You should follow those guidelines in order to contribute.