Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Showing a link (to create subtask) in a custom field

Pujan Ziaie
Contributor
January 29, 2018

Hello,

for ease of use for our users (JIRA Cloud Core), I would like to provide a link on the issue for them to create certain subtasks, without having to go to the menu and select "create sub-task".

I can put this in the description field, but then I cannot use description for its main purpose:

[create new sub-task|https://[base-URL]/secure/CreateSubTaskIssue!default.jspa?parentIssueId=xxx&issuetype=10014]

How can I put a hyperlink (with html-tags like <a> or Wiki-notation) in a custom field (single or multi-line)? When I put the tags it is shown without rendering. Is there any way to make a custom field hyperlink-friendly as in Description?

Thanks for any help in advance! :)

Cheers

1 answer

0 votes
Nic Brough -Adaptavist-
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.
January 29, 2018

I would install the Jira Toolkit (Atlassian add-on, free) and use a "message field for view".  You should be able to add links into a text area.

Pujan Ziaie
Contributor
January 30, 2018

Thanks Nic!

Unfortunately it's not possible to use <script> in the default value of message field, at least not in the Cloud version. So the question remains: how to show a link to create sub-tasks, that is comprised of dynamic parts (issue id) and not just static text.

Nic Brough -Adaptavist-
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.
January 30, 2018

You should never use <script> tags anywhere in Jira.  The message field does allow you to use plain html though.

Pujan Ziaie
Contributor
January 30, 2018

Would you please give me an example on how to configure a Message Field for View that I can build this URL without using java script?

<a href="https://[base-URL]/secure/CreateSubTaskIssue!default.jspa?parentIssueId=$issue-id&issuetype=10014">Create Sub-task</a>

Where issue-id is the id of the current issue (where the field is shown). Thanks a lot!

Nic Brough -Adaptavist-
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.
January 30, 2018

Ah, sorry, I see the problem.

You can't do it dynamically.  Best you can do is some text that tells the user to use the menu option. 

If you had Server, you could inject a web-fragment to duplicate the menu option more visibly, but Cloud can't do it.

Pujan Ziaie
Contributor
January 30, 2018

If I had Server, I would've used Script Fields. ;)

Ajinkya Paradkar June 7, 2022

Hi Nic , Pujan , 

I am working on Jira Server and just ran through your conversation regarding adding a link for Sub-Task creation to a custom field description.

 

Can you please explain how can I use web-fragment or Script Fields to achieve this.

 

Thanks,

Ajinkya

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events