How can I exclude a custom field content from being included in the update JIRA notification?
This particular field (group sign-off plugin) contains a long script that is applied during a transition into an approval status. It is rendered graphically by the plug-in on the UI, but the JIRA notificaiton sends the raw script (which is just confusing to the end user).
I would assume the principle method of removing a custom field from notifications would be the same regardless of the field type.
To hide some fields in email-notification I added following if-clause to velocity-template changelog.vm.
#foreach ($changeitem in $changelog.getRelated("ChildChangeItem")) #if(!$changeitem.getString("field").equals("FIELDNAMETOHIDE")) <tr valign="top"> SOME CODE </tr> #end #end
The file can be found for html-mails in \%JIRA-HOME%\WEB-INF\classes\templates\email\html\includes\fields and for text-mails in \%JIRA-HOME%\WEB-INF\classes\templates\email\text\includes\fields.
Does anybody have an idea, how to do this programmatically in scope of a plugin development?
My developed custom field also contain some "cryptic" uninteresting content for the user and I don't want to delegate the problem to an administrator who is running the plugin in his JIRA instanz.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs