Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get resolutionDate from REST API?

djx
May 15, 2023

I would like to pull the resolution date (and resolution) for issues from the REST API. How can I do this? I have seen other questions about editing these fields, but I just want to read them. From what I've seen they are not technically "fields", and I don't see any examples in the documentation about how to get this information.

1 answer

1 accepted

0 votes
Answer accepted
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 24, 2018

Hello @Kewl Tanooj

And welcome to the community.

Can you provide your script?
To get status you can use

issue.status.name
Kewl Tanooj
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!
June 24, 2018

I think get it now. I was referring to issue.getStatus().getName() in my script which wasn't obviously the right way. Still learning a lot about Scriptrunner/Groovy so have these kindergarten doubts.

Its working now. Thanks for the welcome and the assist Mark !

Erik Ekengren
Contributor
November 20, 2020

Hi Kewl!

I know this is an old thread but I have the same question. It would help a lot if you are able to share the script with me.

 

BR/

Erik

Suggest an answer

Log in or Sign up to answer