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.

http://www.midori-global.com/products/jira-better-excel-plugin/documentation/visual-basic-macros

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

145 views 1 17
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