Discussion:
Does JIRA support Tooltips or custom help for custom fields?
RichPascoe
2006-04-19 16:18:00 UTC
Permalink
When you add the priority field to a screen it comes with a help popup icon that launches this page (... ShowConstantsHelp.jspa?decorator=popup#PriorityLevels).

Can this page be overridden or changed? And can this icon be added to other fields? Or does JIRA support tooltips?

I would like to show a user some instructions for completing a field without having to display it under each field.

Thanks
--
Post by RichPascoe - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=11016
-
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JIRA-User details available at:
http://www.atlassian.com/software/jira/mailinglist.jsp
~
Unsubscribing:
To unsubscribe yourself from the list, send an email to jira-user-***@lists.atlassian.com (not jira-***@lists.atlassian.com) containing the line (in the body of the message):
unsubscribe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charlie James
2006-04-19 17:11:15 UTC
Permalink
Hi, Rich Pascoe

I knew a Rich Pascoe who worked special weapons at the Concord Naval Station
in California, would this be the same person?

Charles James
Post by RichPascoe
When you add the priority field to a screen it comes with a help popup
icon that launches this page (... ShowConstantsHelp.jspa
?decorator=popup#PriorityLevels).
Can this page be overridden or changed? And can this icon be added to
other fields? Or does JIRA support tooltips?
I would like to show a user some instructions for completing a field
without having to display it under each field.
Thanks
--
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=11016
-
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.atlassian.com/software/jira/mailinglist.jsp
~
To unsubscribe yourself from the list, send an email to
unsubscribe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brian Nguyen
2006-04-20 07:08:45 UTC
Permalink
Hi Rich,

The answer to all of the above is yes, however all would require you to edit existing jsps and custom field templates.

The help page itself can be found from: /atlassian-jira/secure/showconstantshelp.jsp, and can be edited to contain your own specific help.

In order to add the help icon to a custom field, you will need to edit the custom field's velocity template.

For example, if you would like to add the link to a 'textfield' custom field, you would goto: /atlassian-jira/templates/plugins/fields/edit/edit-maxlengthtext.vm and add the line:

#localHelp ('<name of field>' '<name of anchor on help page>')

The location of the appropriate velocity file can either be found in the custom field's atlassian-plugin.xml or /atlassian-jira/WEB-INF/classes/system-customfieldtypes-pplugin.xml (this is for in-built custom fields).

Also please note that changing the above template will apply the change to ALL textfield custom fields. So you may wish to create an equivalent custom field type that implements these changes.

This can be done by:
1. Create a file atlassian-plugin.xml, the exact format of the file can be found in the tutorial:
http://confluence.atlassian.com/display/JIRA/How+to+create+a+new+Custom+Field+Type
2. Copy the original customfieldtype tag to the new file
3. Rename the key for the new custom field type.
4. Copy the original custom field's velocity template and place it in the same directory as you atlassian-plugin.xml
5. Edit the newly copied template to include the help icon
6. Edit the atlassian-plugin.xml so that it points to the new directory (in the resource tag)
7. Package the two new files by running the following command
jar cvf <name of plugin jar> atlassian-plugin.xml <name of new template>
8. Place the the new .jar file into the /atlassian-jira/WEB-INF/lib/ directory
9. Restart Jira, The new custom field will now be available.

Let us know if you have any further questions.

Thanks,
Brian
--
Post by ***@atlassian.com - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=11016
-
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JIRA-User details available at:
http://www.atlassian.com/software/jira/mailinglist.jsp
~
Unsubscribing:
To unsubscribe yourself from the list, send an email to jira-user-***@lists.atlassian.com (not jira-***@lists.atlassian.com) containing the line (in the body of the message):
unsubscribe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RichPascoe
2006-04-20 18:42:38 UTC
Permalink
Awesome reply - thanks. I also found that these pages on using Javascript in the description field very useful.

http://www.atlassian.com/software/jira/docs/v3.6/localdocs.html
http://confluence.atlassian.com/display/JIRACOM/Using+Javascript+to+set+custom+field+values

-Richard
PS - That RichPascoe is not me!
--
Post by RichPascoe - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=11016
-
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JIRA-User details available at:
http://www.atlassian.com/software/jira/mailinglist.jsp
~
Unsubscribing:
To unsubscribe yourself from the list, send an email to jira-user-***@lists.atlassian.com (not jira-***@lists.atlassian.com) containing the line (in the body of the message):
unsubscribe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Loading...