Query bug status from Excel

I need to query the status of a bug, from VBA code in an Excel sheet. 

Which strategy is best, for such an external query? Which interfaces are provided by JIRA?


We use cloud JIRA.

3 answers

Hi Nic

Thanks, but I cannot find any example VBA code to try out. Could you point to some?

Does VBA instantiate any class to authenticate, and how do I install that class on the client side?

BW Peter Hansen


I'm afraid I've managed to stick to Dijkstra's theory and not damage myself by learning any BASIC, especially VBA..

Using the below VBA code (I intentionally replaced my pwd with xxx) I got the error: Run-time error '-2147024891 (80070005)'

Sub Makro1() Dim JiraAuth As New MSXML2.XMLHTTP60 Dim LogInREST As Boolean

Dim sErg As String Dim sPfad As String Dim Cookie As String

'Login to JIRA with the default user' With JiraAuth  .Open "POST", "http://pension.atlassian.net/jira" & "/rest/auth/1/session", False  .setRequestHeader "Content-Type", "application/json"  .setRequestHeader "Accept", "application/json"

.send " {""username"" : """ & "pbh@pension.dk" & """, ""password"" : """ & "xxx" & """}"" '*** HTTP-Request senden"

If .Status = "200" Then MsgBox ("Hurra!")  Cookie = "JSESSIONID=" & Mid(sErg, 42, 32) & "; Path=/" & sPfad  LogInREST = True  End If

End With

End Sub


I'm afraid that's a runtime error in the application you're coding in, it's nothing to do with JIRA (unless that has sent back a request VBA can't process, but even then, it should only return JSON or a simple "can't do that")

Have you tried this with the Better Excel Plugin's VBA capabilities? It sounds as that is an inverse of the approach your original question suggests, but that may even be a better approach.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

388 views 6 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you