Giter Site home page Giter Site logo

jira's People

Contributors

eklipzgit avatar kevinmarquette avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jira's Issues

Create Get-JSession comand

Need to be able to test to see if a session is already established for scenarios where the controller script needs to know when to prompt for credentials or to skip the Open-JConnection step.

Login don't work in powershell version 6.1.3

I get this when I try to login:

 Open-JiraSession -Credential $credential -Uri $uri -Save
New-StoredCredential : Argument 'New-StoredCredential' is not recognized as a cmdlet: Could not load type 'System.Web.Security.Membership' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
At C:\Users\sdaa\Documents\PowerShell\Modules\jira\0.2.2\jira.psm1:88 char:21
+             $null = New-StoredCredential @storedCredential -Comment " ...
+                     ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (New-StoredCredential:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CmdletNotFoundException

This the current version:

 $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.3
PSEdition                      Core
GitCommitId                    6.1.3
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

I guess I need to install something to get this to work. But what exactly?

Get-Module -Name jira

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.2.2      jira                                {Add-Comment, Get-Issue, Invoke-IssueTransition, New-Issue...}

Use an array for input to customfields

How do I enter an array to the input data for customfields? I tried different versions, but I had no success so far.

Set-Jissue -key ITDR-152 -customField @{"Responsible Team" = @("System (CMDB-3605)")} -Verbose
VERBOSE: ParameterSetName [IssueID]
VERBOSE: Updating issue
VERBOSE: Saving [ITDR-152]
DEBUG: Processing [1] running queries
DEBUG: Waiting for an async result to finish
Set-Jissue : System.InvalidOperationException with Saving [ITDR-152]: [data was not an array]
At line:1 char:1
+ Set-Jissue -key ITDR-152 -customField @{"Responsible Team" = @("s ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-JIssue], JiraInvalidActionException
+ FullyQualifiedErrorId : JiraModule.JiraInvalidActionException,JiraModule.SetIssue

This is for an Insight object.
When I get the issue, it looks like this:

 (Get-JIssue -Key itdr-152).customfields| ? name -like responsible*
DEBUG: Queueing running queries
DEBUG: Processing [1] running queries
DEBUG: Waiting for an async result to finish

Values                   Id                Name
------                   --                ----
{system (CMDB-3605)} customfield_11302 Responsible Team

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.