How to make an image clickable in jira comment, so it pops up as if you click on attached image in attachment area?

时间秒杀一切 提交于 2019-12-04 20:37:28

问题


I'm talking desktop browser experience, e.g. chrome. In jira, if I attach the image I can use it in my comment - and it's great! I usually use width=800px so the whole image can be seen in the comment.

So I can write something like this:

Here's the screenshot

!my-screenshot-image.jpg|width=600px!

The problem is that sometimes screenshot is too big and when shrunk to smaller size, e.g. 600px, is not readable.
When you click on the image in attached files area then it pops up and this is what I want in the comment section.

I was wondering if there's any parameter that would make it happen? Is there a list of parameters that can be used when "embedding" image somewhere? I only seem to find width parameter.

P.S. When you open jira ticket on mobile - it looks fine and image is actually clickable - when you click on it it opens up a page with just image in it.


回答1:


You want this to allow a small image in the comment to be expanded into a larger light box view:

!my-screenshot-image.jpg|thumbnail!

Per the source for JIRA 6.3, the following are also valid attributes for images:

align
border
bordercolor
alt
title
longdesc
height
width
src
lang
dir
hspace
vspace
ismap
usemap
id
class



回答2:


This one works for me.

!my-screenshot-image.jpg|thumbnail, width=800px!



来源:https://stackoverflow.com/questions/27935678/how-to-make-an-image-clickable-in-jira-comment-so-it-pops-up-as-if-you-click-on

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!