It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Default content in description field for a bug

Deleted user Jul 11, 2012

We are using OnDemand version of JIRA (legacy studio). We were using a Javascript to place a certain content in the description field if the issue type was bug to guide the QA team on the steps they need to mention to describe the problem in detail.

Since the last upgrade where we changed the issue creation UI, even though the script is present, it doesn't display the content.

Is there a way that we can get this function to work again?

2 answers

0 votes
Azwandi Mohd Aris Aug 15, 2012

I am not sure if it now shows an unrendered HTML script, but I suppose that is the case. In the beginning of July 2012, we introduced some changes to the JIRA field markup, which does not allow HTML scripts due to security concerns. More information about this in the release summary - https://confluence.atlassian.com/display/AOD/July+2012#July2012-FieldmarkupchangesinJIRAOnDemand.

Hope that answers your question.

Deleted user Aug 23, 2012

Hi Azwandi,

I'm talking about the issue description field. Does the change mentioned above apply there as well? What are my options now? I need this text to be there as this acted as a guideline to the QA while filing bugs.

The content was like the following -

<script type="text/javascript">
if ((document.getElementById('issue-create-issue-type').innerHTML == 'Bug') && (document.getElementById("description").value == ""))

{ document.getElementById("description").value = "Test Description:\n\nPrerequisites:\n\nSteps to Reproduce:\n\nExpected Results:\n\nActual Results:\n\nTestcase ID in Test link:\n "; }

</script>

Harry Chan Sep 02, 2012

Hi, all HTML are now disabled for OnDemand I think. Your best option if you do need these customizations would be get JIRA hosted separately either in house or by another provider and not use Atlassian OnDemand.

Deleted user Oct 08, 2012

Thanks Harry. This is real bad. This was really helping us to provide a template of what QA needs to include in a Bug's description and now we don't have it. :(

Harry Chan Oct 08, 2012

If HTML feature is going to be so important for you, you might consider moving to a JIRA hosted solution outside of OnDemand.

0 votes
Rob Sherman Jun 01, 2014

Jira uses Votes on existing issues to determine how and when something gets acomplished, so be sure to vote on the existing issue for this: https://jira.atlassian.com/browse/JRA-4812

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Here’s what we’re doing to make Jira Cloud faster

Hello Community 🤗 I’m Nikhil, a Product Manager on the Jira Cloud team working on performance improvements. Performance is an ongoing journey and we continue to invest heavily in it. We under...

132 views 1 19
Read article

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