How to set a Message in a Field?

JIRA_USER November 27, 2016

I have a field, i.e. Customfield_1. Now when I select a value (example: Yes) from Customfield_1, I should get a Pop uo message. How do I do this please?

2 answers

0 votes
JIRA_USER December 13, 2016

Here is a solution I came up with to display the message in a Field when condition meet or success.

"XXX.setHelpText" is a magic word.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 27, 2016

You'll need to write some code to do that.  Sounds like some javascript is needed, but I'm not sure you'll be able to do it all by injecting that into fields, you might have to write an add-on to support it.

I'd also recommend not doing it - humans don't like pop-ups that interrupt what they're doing.  Could you explain the use-case and maybe we can get you a better answer, or one that doesn't require code.

JIRA_USER November 28, 2016

Lets say I have two fields, Customfield_1 and Customfield_2. Customfield_1 has Dropdown value "Yes and NO". When Yes is selected in Customfield_1, Customfield_2 will get the Auto Populated Value as "Public". So I want my users to make aware that Selecting Yes in Customfield_1 will give the value as Public in Customfield_2. Which means I want to tell my users that selecting Yes will keep the ticket accessible to the Public.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2016

Ok, that's a horrible thing to do to a user with a pop-up.

I would

  • Install the Script Runner add-on
  • Install the JIRA Toolkit
  • Add a message-for-edit field to the screen (from the toolkit), with some text in it like "This issue is publicly accessible, strongly highlighted
  • Use Behaviours to change the drop-down values, AND hide the text field when the issue is set to be protected by the selection

A show/hide here will not break the users flow, unlike a popup

JIRA_USER November 28, 2016

Is there a process to  directly do from the Behaviours or adding Initialiser function? I do not want to add the message directly into the field.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2016

I don't understand the question.

Behaviours can do what I describe.

JIRA_USER November 28, 2016

Below is my condition:

if(gov_data.getFormValue()=="18961")   

security.setHidden(false)

else    security.setHidden(true)

Here, Gov_Data and Security fields are System field and used by other projects. So I cannot add the message box in thos efield. I want to add the message from the script in Behaviro.

When Gov_data = 18961 which means Yes, Security will set the value as 'Public'.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2016

Gov_data is not a system field, it's a custom field.  Behaviours can be project/issue specific though, it should handle that for you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events