Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Summary field get its values from other fields

Joseph Gati March 18, 2021

HI

i have created a new screen that contain those fields:

First Name

Last Name

ID

Summary 

 

i want to fill out only the 3 first fields and those values will appear automatically in the summary field so i dont need to enter details twice.

 

is it possible in the jira cloud?

2 answers

1 accepted

0 votes
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
March 18, 2021

Hi @Joseph Gati I don't think it is posiible on Cloud. It is possible on Server/DC (I'm using Behaviours functions from ScriptRunner App).

You could do it using postfunction/automation but summary field would be filled in AFTER the screen is saved. If you are interested in this solution, just let me know...

Joseph Gati March 18, 2021

so how do you design an employee screen?

Summary  field that contain his first name & last Name & ID?
or all those values in separate rate fields?

 

and regarding your answer - how do i do it with post-functions/automation?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2021

I would have a think about what you want from an employee record.  In most cases, I'd expect a summary to hold the primary name that an employee is known by within the organisation, but then have fields dedicated to each specific piece of information. 

Or, arguably, put the ID, or a login in the summary, but as the summary is the first thing a human sees in Jira, I don't think that's a good use, as humans start by thinking other humans are human.   No one calls me nbrough or id27 at Adaptavist.  And concatenating things together into a summary is just a pain in the neck, it breaks most of your reporting and search

Dedicated fields are the way to go, a summary that is readily identifiable to people and then consider a full legal name, first name(s), last name, id, email, airport preferences, etc.

Don't update the summary automatically, that just annoys people who have been forced to put data into it already.

Joseph Gati March 18, 2021

"Dedicated fields are the way to go, a summary that is readily identifiable to people and then consider a full legal name, first name(s), last name, id, email, airport preferences, etc."

thats mean i need to write twice the first name, last name, and id number:

the first time in dedicated field

the second time in the summary field

and that is also annoying...

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
March 18, 2021

Hi @Joseph Gati , I agree with @Nic Brough -Adaptavist-  because it is kind of hacking some BASIC Jira functionality. But if you still need to know how to setup automation to update Summary field, here is some screenshot:

Selection_188.png

Joseph Gati March 18, 2021

as i see you do the "hack" via new rule.

but the first condition will not happed cause jira won’t let you create an issue without summary.

it like the egg and the chicken problem

so this "hack" only work if you have already

this is how my rule configured

i dont know if i can do it like this (but my custom field called: First Name, Last Name, ID) there is a space between the words.

 

when i try to create an issue and i dont put anything in the summary field the Jira dont let me open the issue it says that i need to type something in summery filed (its mandatory) - so it mean that the rule is never executeScreen Shot 2021-03-18 at 23.41.15.png

Screen Shot 2021-03-18 at 23.36.46.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2021

Exactly - that's the horrible thing you should not do to your people!

I'm not saying "don't", just that you should think through the usage a bit more.

Joseph Gati March 18, 2021

i think there is no solution for that.

 

Do you have something in your mind to help me with that?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2021

The only good answer is to not try to use the summary this way.

A less good answer is the automations you've seen above and telling your users they're going to have to put up with entering data that is going to be destroyed

0 votes
Joseph Gati March 20, 2021

10x alot 

i success to do what i want with the workaround of @Martin Bayer _MoroSystems_ s_r_o__ 

 

the next issue is the i want the value in summery field will created with with default value (like "employee") and than @Martin Bayer _MoroSystems_ s_r_o__ workaround will work automatically.

i use the solution here:

https://confluence.atlassian.com/jirakb/how-to-set-default-value-for-summary-field-in-jira-800692650.html

and add at the Description of the field:

<script type="text/javascript">
if (document.getElementById("summary").value == "") {
document.getElementById("summary").value = "Employee\n";}
</script>

 but it doesn't work - it is nor insert the word "Employee" to the summary field when an issue created

 

what i'm doing wrong? 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2021

Note the box at the top of the doc - this kludge only works on Server and DC.  Cloud does not allow for it.

Joseph Gati March 20, 2021

So for cloud i dont have any option to insert default value to summary field?!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2021

Correct

Joseph Gati March 21, 2021

:(

thank you very much for your assistance 

hope this feature will be on cloud too

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2021

I don't think you will ever see "destroy what the human wrote and build something useless to them" implemented.  An issue summary probably should be a short bit of text that explains why we are raising an issue.  Encoding other stuff into it, defaulting things that people will then ignore - not helpful.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events