Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create Issue - You must provide either the -Reporter parameter or the -Credential #28

Closed
00msteiner00 opened this issue Jun 3, 2016 · 5 comments

Comments

@00msteiner00
Copy link

HI, i tryed to create a ticket with

new-JiraIssue -Project TCJ -IssueType Bug -Fields @{'Security Level'= '10401'} -Summary 'Test issue from PowerShell'  -Description 'this is the test descr. ' -Priority  '1' 

Return failure message:
Unable to identify issue reporter. You must provide either the -Reporter parameter or the -Credential parameter, or
the currently logged-on user must be a valid Jira user.
At C:\Program Files\WindowsPowerShell\Modules\psjira\Functions\New-JiraIssue.ps1:109 char:17

  •             throw "Unable to identify issue reporter. You must provide eithe ...
    
  • - CategoryInfo          : OperationStopped: (Unable to ident...alid Jira user.:String) [], RuntimeException
    - FullyQualifiedErrorId : Unable to identify issue reporter. You must provide either the -Reporter parameter or th
      e -Credential parameter, or the currently logged-on user must be a valid Jira user.
    
    

i tryed different users - but I'm not able to create a ticket - to add a comment works fine

@replicaJunction
Copy link
Collaborator

Hello,

The issue here is that JIRA doesn't know who the reporter of the issue should be. The easiest way to fix this is to add the -Reporter parameter, like this:

New-JiraIssue -Project TCJ -IssueType Bug -Fields @{'Security Level'= '10401'} -Summary 'Test issue from PowerShell' -Description 'this is the test descr. ' -Priority '1' -Reporter 'powershell-user'

@z0ph
Copy link

z0ph commented Oct 19, 2016

Hello,

I got the same error with this :

New-JiraIssue -Project IPE -IssueType Incident -Priority 1 -Summary 'Test issue from PowerShell' -Description 'This is a test issue created from the PSJira module in PowerShell.'

Unable to identify issue reporter. You must provide either the -Reporter parameter or the -Credential parameter

I tried, like you suggested :

`New-JiraIssue -Project IPE -IssueType Incident -Priority 1 -Summary 'Test issue from PowerShell' -Description 'This is a test issue created from the PSJira module in PowerShell.' -Reporter 'Lucie'

WARNING: JIRA returned HTTP error 400 - BadRequest
Resolve-JiraError : Jira encountered an error: [reporter] - Field 'reporter' cannot be set. It is not on the appropriate
screen, or unknown.
At C:\Program Files\WindowsPowerShell\Modules\PSJira\Internal\Invoke-JiraMethod.ps1:111 char:13

  •         Resolve-JiraError $result -WriteError
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Resolve-JiraError

Do you have any idea ? Its a 'business' type Project in Jira

@replicaJunction
Copy link
Collaborator

Hey @z0ph - how do you normally create issues in this project through the Web interface? Do you need to specify a reporter, or does it default to something?

@z0ph
Copy link

z0ph commented Oct 19, 2016

Hey @replicaJunction, Yes, i normally create issue through web, but there is no choice of reporter, please find a screenshot below.

Screenshot

@replicaJunction
Copy link
Collaborator

This should be resolved in the latest version! See #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants