Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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



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! :)


1 answer

0 votes

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.

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.

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

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!

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.

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

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.




Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you