Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automated method to create ticket - how to pass a password

We have an application that automates file movement.

We have the ability to run a PowerShell script after a successful file move.

I want this PowerShell script to create a Jira ticket. But since the File movement app is a windows service, there is no possibility of an interactive exchange with a user for a password. I researched, and anything i find does not work (errors)

$password = ConvertTo-SecureString "Magic$Password" -AsPlainText -Force
$Creds = New-Object System.Management.Automation.PSCredential ("Service.AccountName", $password)

...

New-JiraIssue @parameters -Credential $Creds

---error---

WARNING: JIRA returned HTTP error 401 - Unauthorized
ConvertFrom-Json2 : Exception calling "DeserializeObject" with "1" argument(s): "Invalid JSON primitive: ."

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you