You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I would like to set a default SUMMARY value for certain request types.
I found info here, stating to insert this javascript into the field. The instructions are:
Go to the respective Field Configuration of the project.
Find for the Summary field.
Click on Edit.
Input the following JavaScript at the Description of the field:
<script type="text/javascript">
if (document.getElementById("summary").value == "") {
document.getElementById("summary").value = "<Default Value for Summary>\n";}
</script>
But I gather this will affect this field in all forms, etc. Is that correct?
I read elsewhere that I could add,
if (issue.get("issuetype").name == "Issue Type" {
But actually even without this additional code, the above JS doesn't have any affect on the new issue form (on the user portal). And on the Agent site of things, I shows the JS under the field, as its description.
Is there any way (without using paid plugins/add-ons to achieve this?
Hello @inspirednz
Thank you for reaching out.
I see that you are currently subscribed to Jira Cloud. Is that correct? Or are you using Jira Server (self-hosted)?
I ask this question because the functions/customizations you found using Javascript are applicable to Jira Server, however, they can not be implemented in Jira Cloud because Javascript and HTML create an XSS vulnerability and, for that reason, they are not allowed in Jira Cloud. You can find more details in the following documentation:
Functional differences in Jira Cloud products
That being said, the best way to set a default text for the summary field based in the request type selected in Jira Cloud would be by using Jira Automation. These would be the steps:
Let us know if you have any questions.
@Petter Gonçalves I've tried your instructions for Jira Cloud and does doesn't seem to resolve what I was hoping to accomplish. When I go to create a new issue it still has a blank required field in the standard Create issue dialogue and clicking create without anything input into the summary results in the "You must specify a summary of the issue." so the Automation never runs.
My hope was to default this create issue Summary to "[Auto]" and if the user overrides it will use the new name otherwise my automation post create would replace the name with fields provided at the time of creation by the user to format a default summary. Ideally, for this type of issue I'm designing, 99% of the time I don't want the user to have to think about entering anything in the to required Summary field.
The automation 'When: Issue Created' seems to only trigger post creation dialogue.
It is also unclear as your steps refer to "Project automation (Not automation)", I only see Automation under the Project settings. I do not see anything that might indicate a difference between Project Automation and Automation.
Am I missing something or is there another way to achieve my goal?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.