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

How to automate update and close jira tickets with Azure DevOps

Richard Heijder
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2024

Hi,

 

How can we use the API from the atlassian suite (jira) to automate Azure Pipelines when doing a pull request.

 

We can use JiraPS in Azure DevOps Pipelines but it keeps failing.

Script example:

 

 

taskPowerShell@2
  displayName'jira powershell'
  inputs:
    targetType'inline'
    script: |
      # Write your PowerShell commands here.
      Install-Module -Name JiraPS -Scope CurrentUser -Force -Verbose
      Import-Module -Name JiraPS -Force -Verbose
      Set-JiraConfigServer 'https://anwb.atlassian.net'
      New-JiraSession -Credential "rheijder@anwb.nl"
#      Connect-JiraServer -ServerUrl "https://anwb.atlassian.net" -Username "rheijder@anwb.nl" -Token $(token)
#      Get-Help about_JiraPS
#      Import-Module -Name JiraPS -Verbose
#      set-jiraissue -Issue "cpe-612" -AddComment "blahviadevops"
Anyone suggestions?
Regards,
Richard

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events