Update description of an issue from database?

Sandesh Shetty
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 Leaders.
October 1, 2019

Can some one give me the sql query to update description of an issue from database?

2 answers

0 votes
Sandesh Shetty
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 Leaders.
October 1, 2019

@Ravi Sagar _Sparxsys_ 

I'm trying to change jira database from oracle to postgres. One of the old closed issue's description consists some junk characters. because of that import of xml backup is failing. I want to delete that junk characters from the issue description. Can you please help me to do that?

Thanks and regards

Sandesh

Ravi Sagar _Sparxsys_
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 Leaders.
October 1, 2019

Hi @Sandesh Shetty 

The table name is jiraissue and you can take a look at the schema here.

Ravi

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 1, 2019

That's one of the few excuses for doing it.  However, you will find it safer and easier to edit the xml before import (Assuming you have a text editor that can cope with the size of it)

Sandesh Shetty
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 Leaders.
October 4, 2019
Ravi Sagar _Sparxsys_
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 Leaders.
October 4, 2019

No problem. Thanks for sharing the link, it will help others.

0 votes
Ravi Sagar _Sparxsys_
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 Leaders.
October 1, 2019

Hi @Sandesh Shetty 

Any specific reason why you want to do it directly in the database? Updating in database in not recommended.

You can use Jira REST api for doing that.

Ravi

Suggest an answer

Log in or Sign up to answer