Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to set default summary value before creation of issue (jira cloud)

Sorry for us, but javascript in the field configuration is disabled in Jira Cloud.

What I want to do is get a default value in my summery field so on creation jira doesn't complain about the summary field has no value. 
In Jira Server this was possible by putting:

<script type="text/javascript">
if (document.getElementById("summary").value == "") {
document.getElementById("summary").value = concat((document.getElementById("AB Nummer"))," ",(document.getElementById("Kunde"))) ;

in the Description of the summary field, but this doesn't work anymore in cloud.

So if anyone has a solution for this, I would be delighted.

2 answers

2 accepted

0 votes
Answer accepted

See other resposne. This was in the wrong place and I can't find a way to delete a comment.

0 votes
Answer accepted

It sounds like you want to populate the Summary field with the value of the AP Number field. I'd recommend using an automation rule for that. 

  • When: Issue created
  • If: matches (Summary is empty)
  • Then: Edit issue fields
  • Choose fields to set... Summary
    • From the drop-down, select Copy from issue
    • From the 3 dots, Copy from..., then select the Copy Summary from to select the appropriate field

You'll also need to make sure Summary isn't a required field when the issue is created. 

Hello Paul, 

Thanks for your answer! 
I tried that but unfortunately there are 2 cons in that solution:

1 Setting a field value to more than one referenced field is impossible using Copy from
   I've tried doing it putting  %{summary} + " " + %{customfield_10039} via Set value but
   that doesn't seem to work (I'm still ongoing figuring it out)
2 Summary is a system field and you can't make it a non-required field, as far as I have
   found, or do you have a sugestion on how to do it?

Ah, you may be right, perhaps Summary is always required. If you're just trying to append the value of your custom field I think you're on the right track but with incorrect syntax.

{{issue.summary}} references the Summary field and {{issue.customfield_10039}} would reference your other value. 

You can use the "Log action" advanced action in Automation to log values such as "The summary is: {{issue.summary}}" or "{{issue.summary}} + {{issue.customfield_10039}}". Trigger the rule then take a look at the audit log to check if your syntax was correct. Once you've got it sorted out you can use that syntax to edit your Summary field and delete the Log action step.

Like Janco Hoekstra likes this

Thanks Paul, this last hint about the syntax helped!
It now sets the desired value.

Remains that summary is always required problem. I think that it is as it is and they have to type something in the summery field...
The problem is that I want to give it a value before anything happens and that simply doesn't work in cloud..

Hello Janco,

I have the same problem in Jira Work Management Cloud.
Were you able to achieve your goal for the default summary value before creating your case?

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

462 views 19 23
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