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
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.
Read about this option here: Revert changes made to the description
@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.
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"
}
}
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
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.