How to link to the attachments added from the description of a workitem? - azure-devops

In VSTS attachment can be uploaded for workitems. Those attachments are displayed in a seperate tab.
I found no way to reference those attachments from within the description of the workitems.
So how to do it?

drag and drop the attachment to your browsers URL text field
(optional:) remove the &download=true&api-version=5.0-preview.2 part at the end
use this URL to create a link in your comment

I did not find another way yet and maybe it is not so logical :). But as workaround you may download an attachment from work item. Then you may copy a download link from your browser download page and use it on description field.

A workaround that I found to this which shows a selected text within the comment as clickable and opens the attachment if you click on it is:
find and copy the attachment url from browser Developer Tools,
select the part of the text in Discussion box that you like to link to the attachment to,
paste the attachment url to Address box in Create Link popup. You can get to this by using three dots (...) in Discussion section toolbox (More Tools) and select Create Link which allows you to paste the address.

This is amazing that AzureDevops does not have this ability. It's disappointing and makes working with the product so much more difficult. I really cannot imagine how they use this product internally.
You could inspect the attachment url in chromedev tools, then copy the url, the element will look like
<div class="grid-cell-contents-container">
<span class="attachment-icon bowtie-icon bowtie-file-content"></span>
filename.filetype
Then just remove the &api-version=5.0-preview.2 part at the end
Come on Microsoft! You're better than this.

It is now possible maybe. Goto attachments and click on list view
List view of attachments of a workitem
Then just left-click on the file of your choice and drag it

This would appear to be the least "hacky" way, as it relies entirely on the Azure DevOps UI:
Go to the attachments list of the work item.
While you hover over an attachment, three vertical dots with tooltip "More actions" will be shown:
from where you can open a submenu:
In there, click "Copy attachment link".
If you paste this link to a text-only context, you will get only the attachment filename, but if you paste it into a rich-text editor with support for links, such as the Description field or Discussion comments in the work item, the attachment filename will appear as a clickable link.

Related

Where can I find the template of the email that is sent with the Invoice to a customer?

The customer in Netsuite gets an email with the generated invoice attached as a pdf. The requirement is to change the body of the email. I am unable to locate the template that has this info to modify. Please advise.
The current body of the email is:
"Please open the attached file to view your Invoice.
To view the attachment, you first need the free Adobe Acrobat Reader. If you don't have it yet, visit Adobe's Web site http://www.adobe.com/products/acrobat/readstep.html to download it."
`Customize-->Transaction Forms-->Whichever invoice form you're using`.
Under this form you should be able to choose which email template to send.
To find this email template,
Customize-->Transaction form PDF/HTML layouts
Under this menu you should be able to select and customize the email template however you want. Make sure the template you edit corresponds to the template that is showing on the form.
You may need to or have the desire to enable advanced/PDF/HTML templates, which allows you to edit and customize forms in a much more robust fasion using HTML/XML/CSS, Freemarker, and BFO. (See suiteanswers: 48703)
I know the original post is several years old, but I too found myself searching for answers recently in stackoverflow so I thought I would post the answer to this questioon.
Use the global search bar to type in Email Template. You can customize from there. I've attached a screenshot that replaces the generic message
"Please open the attached file to view your Invoice.
To view the attachment, you first need the free Adobe Acrobat Reader. If you don't have it yet, visit Adobe's Web site http://www.adobe.com/products/acrobat/readstep.html to download it."
It has been awhile since I found and got this email template to work, so it is possible there may be another section where you have to set the preference to use this customized email template.

How to enable hyperlinks in grid

I have a document that contains a grid (Among others).
One column in the grid has full hyperlinks leading to a ticketing system, i.e.
https://ticketsystem.internal.company.com/tickets/ticket1337
I want to enable users to click on the URL and open the ticket in a new browserwindow.
How do I do that?
I assume the url is an attribute form, if you right click on the column header you should be able to create the link (below the example in web, but it works similarly also in Developer).
The attribut needs to be formatted with HTML tags to be a clickable link, using to encapsule the URL-string.
This is done in the data model.

Show pop-up when clicking on links in email contents

I am facing a new requirement. My website has email sending facility, which contains links also. What I need is to show popup when I click on the link in the email contents, the contents may or may not be from the website. Which methods I can do for achieving this?
The only way is to have a link to an external page that will open in a browser and execute the popup.
If the content is not from a website I can't see a way of doing this. It will require javascript which cannot be used in an email.

Left-clicking a PDF in GitHub should display it in the browser or download it?

I have a PDF hosted in a GitHub directory. I have a link to this PDF in my README.md as follows -
[foo](https://github.com/me/bar_repo/foo.pdf)
so that users can find it easily when they access the repository. However when they click the link instead of opening the PDF in the browser or downloading it, the users is brought to the github page with url - https://github.com/me/bar_repo/foo.pdf - and here they have options to "View Raw", "Open", etc...(and the Open command requires installation of GitHub for windows...sigh).
I simply want to let users view the PDF in the browser or be given the option to download it if they left-click this link, as is usually the case when people click on links for PDFs on the net.
Does anyone know how I can make this happen?
You need to link to the raw version. So on the resulting page, context click the Raw button, and choose Copy link address and use that URL in your README.
A simpler option should be available since March 17th, 2015:
"PDF Viewing"
Simply browse to a PDF document and we'll render it in your browser like any other file.
From presentations to papers, we've got you covered.
Many thanks to Mozilla and every contributor to PDF.js.
Try https://rawgit.com
Copy paste your pdf path in https://rawgit.com which gives you an URL which can be viewed on a browser.

MODX: How to insert links to other resources in TinyMCE

Am I missing something? When inserting links to other resources, it seems like there should be a "resource picker" that auto inserts the [[~id]] tag for internal links. Is such a "picker" available from the TinyMCE editor in MODX Revolution?
I mean I don't mind using the resource syntax, but I don't see my users being comfortable having to learn and remember it.
When I click on the "Insert/edit link" button, this is the dialog I get:
Clicking on the "Browse" button to the right of "Link Url" gives me the following dialog:
I don't see anything that allows me to pick a resource.
I'm using MODX Revolution 2.2.1-pl (traditional) on IIS 7.5. There could be a possible issue there.
I figured it out, I was definitely missing something. The "Insert/edit link" dialog has a search box which auto completes as you type the name of existing documents into it. Selecting a document from there inserts the document's ID with the proper syntax.
There should be.
When editing text if you highlight a word to be used as a link and then click on the Edit/Insert link icon (a chain link) there is a "Link List" select box that contains all your resources selecting one will populate the link url with the [[~id]] of the selected resource.
In the MODX Revo manager better use the ACE-Editor (Extras/Package/download extras choose Ace) for buiding up your template.
Now you may drag a Ressource from the Ressource-Tree on the left and drop it into your code in the Ace-Window.
This is the easiest way to create a Ressource-Link.