Hide Summary field, make it as non-editable and update Summary through PostFunction

Hi All,

My requirement is to make the Summary field non-editable for one particular issue type.

1. A text field called "customsummary" is added to the create screen

2. The Summary of the issue Type shall not be editable by the user

3. When the issue is updated the Summary field shall be updated according to the format

[Value in Customsummary][Jiraissuekey]

Please let me know if there is any feasible solution for this


2 answers

0 votes

This will not work. You must enter a summary as you create the issue.

What you CAN do is write/find a plugin that will update the summary after the users commit the creation.

If you really do want something that automatically generates it, I'd also add javascript to the create screen to pre-populate the summary with something like "Automatically generated summary, please leave this here".

If you're planning to auto-generate the summary based on what they entered in your customsummary, then I'd forget it - let them enter the summary as normal, and then the post-function will have what they've entered available and can simply change it instead of processing two fields.

If you want to disable it completely, or even just make it optional on create, you need to amend the core code.

Hi Nic,

Thanks for the reply. I will try to do any of the suggested methods.

Or simply swap the usage. Keep summary as it is and create another Scripted Field (using script runner plugin) which always returns you this value [Summary][Issue Key]

Thanks Renjith.

Let me consult the reporter for this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

From Atlassian: Confluence Security Advisory - 2019-03-20

Atlassian released a security advisory on 3/20/2019.  The full advisory is here:  https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html In a nutshe...

22 views 0 1
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you