Forums

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

How to retrieve description content in read format from the modification history

Laure
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!
February 26, 2025

Hello,

I've lost part of the description of my jira ticket
In the modification history, the content is in coded language
=> How can I recover this content and have the original transcription in the description field (old content with text + table) ?

Thanks for your help

2 answers

1 vote
Yuliia_Borivets__SaaSJet_
Atlassian Partner
February 27, 2025

Hi @Laure 

If you are open to using add-ons, it's possible to retrieve description content with Issue History for Jira developed by my team. It allows for saving formatting and rolling back changes with few button clicks. 

revert description changes.png

Read about this option here: Revert changes made to the description

1 vote
Akash Singh
Community Champion
February 27, 2025

@Laure Welcome to Atlassian Community!

You can recover the description back to its original value by following the below steps,

1. Fetch all the change logs on your issue using following API, you can construct the URL as following,

https://mysite-url.atlassian.net/rest/api/3/issue/<issueKey>/changelog

In the above URL replace the base URL with your instance and change <issueId> with the issue e.g. OS-8 or TP-23.

2. Find the log which describes the change in the Description field and copy the original value from the log as shown in the image below. If the response is incomprehensible for you to read in the browser, I recommend using an online json formatter tool to make it pretty and easy to understand.

ans1.png

 3. Now that you have the original Description content, you’ll need to update the current Description field of your issue. There are several ways to do this, but the simplest approach would be to use an automation rule. To set this up, navigate to your project settings, go to the Automation section, and create a new rule.

4. Start by using a manual trigger as this needs to run only once on an issue, you can add restrictions to the trigger so that no one else runs it by mistake.

5. Add the Edit issue fields action, then expand the More options section. In the Additional fields section, enter the following JSON, as shown in the image below.

{
"fields": {
"description": "Paste the original description content here"
}
}

ans1.png

6. Save your automation rule and head back to your issue view. Now run your automation by clicking on the rule from Actions menu as shown below.

ans1.png

This should restore your issue description to original value, don't forget to clean up the automation rule once you are done with it.

Please feel free to reach out in case of any queries or concerns.

Laure
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!
February 27, 2025

@Akash Singh 
Thanks for your answer

I had found the api url width changelog but didn't know how to go further
I restored it manually and that was so long ... 

Thank you for the tips with automation rule ! 
I keep it in mind for sure

 

 

Akash Singh
Community Champion
February 27, 2025

@Laure I realize my response came a bit late, and I wish I could have assisted you sooner. That said, could you kindly mark this as answered so it might help others in the future?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events