Hi
I need a bit more info for this. Do you already have a way of extracting info from Jira via the REST API, but want to know about labels? Or have you never extracted any info from Jira? Based on your answer, I (or anyone else) should be able to better help you
I have my own way to extract info from jira, just duno how to get the label query.
For a = 1 To json("total")
If IsNull(json("issues")(a)("fields")("labels")) Then
ActiveSheet.Cells(a, 3) = ""
Else
ActiveSheet.Cells(a, 3) = json("issues")(a)("fields")("labels")
End If
Next a
However, i get this error once i run this coding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try json("issues")(a)("fields")("labels")("value")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You also need to loop around the labels - as you've shown in your screenshot, you have 2 labels, so I usually use a For Each loop on the labels
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the JSON string that i want to extract to excel macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it should just be expand=changelog, not expand=changelog.histories, but if the JSON above is being returned, then that isn't the problem.
Have you made a change to the VBA code (from what you've shown above) where it is trying to get the labels from the JSON? If so, please include here, otherwise you need to change it to cater for multiple labels
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.