The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

set resolutiondate during import via api

Bibin George
August 6, 2024

Using admin Jira import, I can set the resolutiondate on import. 

Via API, I get error when I try to do this. I tried logging in as a system admin, but that also does not work. 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Matt Doar _Adaptavist_
Community Champion
August 6, 2024

I'm pretty sure that you can't change the Resolution Date value in an issue via REST unless you change the Resolution value. And that may change the date to the current date. IIRC, the underlying code for setting the Resolution Date is called by the code that sets the Resolution in an issue

0 votes
Trudy P Claspill
Community Champion
August 6, 2024

Hello @Bibin George 

Welcome to the Atlassian community.

What is the error that you get?

What is the API call that you are executing?

Your post tags indicate you are using Jira Server or Data Center. What specific version are you using?

Bibin George
August 6, 2024

Hi @Trudy P Claspill 

My 

Jira version is DC v9.15.2

API Call :

curl -k --request POST \
  --url "<url>/rest/api/2/issue" \
  --header "Authorization: Bearer [SYSTEM ADMIN TOKEN HERE]" \
  --header "Content-Type: application/json"

Error: 

{"errorMessages":[],"errors":{"resolutiondate":"Field 'resolutiondate' cannot be set. It is not on the appropriate screen, or unknown."}}

DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events