Skip to content

Instantly share code, notes, and snippets.

// URL for Jira's REST API for issues
var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/";
// Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true
var fetchArgs = {
contentType: "application/json",
headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"},
muteHttpExceptions : true
};
#Log hours
jira --action addWork --issue BADDR-66 --timeSpent 8h --date '9/5/2014 4:00'
#Add comment to a issue
jira --action addComment --issue BADDR-66 --comment 'Just testing out the CLI [~desoes]'
#!/usr/bin/php -q
<?php
/**
* A simple PHP Cli script to append items from a
* Jira RSS feed to a todo.txt file.
*
* I use this to access my work Jira issue list and update
* my todo.txt which syncs via Dropbox to todo.txt Android app.
*
* @author Kevin D. Wolski
<Project
DefaultTargets="documentSpecs"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\pickles\msbuild\PicklesDoc.Pickles.MSBuild.Tasks.dll" TaskName="Pickles" />
<PropertyGroup>
<!-- See here for arguments: https://github.com/picklesdoc/pickles/wiki/Arguments -->
<FeatureDirectory>$(MSBuildProjectDirectory)\Specs</FeatureDirectory>
<OutputDirectory>$(MSBuildProjectDirectory)\MSBuildOutput</OutputDirectory>
namespace StepDefinitions
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using BoDi;
using TechTalk.SpecFlow.Generator;
using TechTalk.SpecFlow.Generator.Configuration;
using TechTalk.SpecFlow.Generator.Plugins;
using TechTalk.SpecFlow.Generator.UnitTestConverter;
using TechTalk.SpecFlow.Generator.UnitTestProvider;
using System.Configuration;
using System.Data.Common;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace TechTalk.SpecFlow.ObjectVerification
{
public static class CollectionVerifierExtensions
{
/// <summary>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Expressions;
namespace TechTalk.SpecFlow.ObjectVerification
{
public static class ObjectVerifierExtensions
{
/// <summary>