Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Why does a scripted field of the script runner destroys the complete view screen of all issues?

I created a scripted field of type html in the script runner settings.

It looks like this:

<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>

...

</body>
</html>

 

Normally I'm using it in a transition dialog of a workflow.

There it works as expected.

But when I integrate the same field in the screen, which is used to view the issues, the complete view is destroyed. First I see the content of the html field and then only some part of the description. All the other fields of the screen are not visible. It is also not possible to scroll the view. It looks like, that Jira just wants to show the content of the html customer field and noting else.

Does somebody know why the scripted html field is destroying the complete normal view of an issue? Thanks.

2 answers

1 accepted

0 votes
Answer accepted

A well formed html document should only have a single header, type, body etc, and your code is injecting others into the body of a page.  Most browsers cannot cope with this and a typical response to a broken web page is to simply stop rendering when you reach the bit that is broken.

You should remove pretty much every line of html you've put in your question - the doctype, html, head and body tags are causing the problem because browsers won't handle more than one of them in a page.

Got it. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS

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