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

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 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 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."}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events