Hy @Padmasree P
You have the table fileattachment.
with that you can construct url with {Jira URL}/secure/attachment/{id}/{filename}
I hope it help.
Best regards,
Pedro Felgueiras
This was helpful in my findings to trying a workaround to include attached images in a file exported using an Xporter template, but unfortunately it didn't resolve my problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The attachments table is what you need to read, but there's no url or path stored. There is data that will enable code to work out where the file is on the disk.
I think we need to know why you are looking for a "url" when there isn't one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
we migrated our Jira server to a different server and changed the dns name in new server..after dns name change , Jira base url is updated to the new dns name.jira issues, attachments are fine after migration.
but there are attachments which are in issue comments , which is still pointing(fully qualified hyperlinks) the old url/dns of Jira. how do I get this updated to new url
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will have to edit the comments. It's nothing to do with the attachments themselves, your users have put urls in as part of the comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Nic,
user did not hardcode the url in comment. he has attached an excel file in old jira server. attachment hyperlink is still pointing to the old dns name. how do we edit the old hyperlinks to the new dns name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The location is stored in settings. There may not be a url that can access the location. Why not just ask the JIRA admin where they are?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Joseph,
I'm not asking the attachment location. whenever user is uploading attachment, is there anywhere in db the attachment details are stored like direct url of attachment.
I migrated Jira to a different server and changed the dns in new server and updated the base url in new server. the migrated environment is fine with attachments and users are able to download it.
but when checked the attachment which are in comment section of the issue. it is still pointing to the old url/dns name. not sure how to get this updated. any help would be appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What did you do with the attachments? At some places I've worked the application is on one server and the DB and attachments are on another one. The settings could be pointing to the old location. If you didn't update the settings for attachments they are probably still there. The user wouldn't see any change in function. If you copied the attachments but didn't update the settings the users will be using the old location.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.