PROBLEM
For Epic issue types, users currently need to manually input twice the same text for both the Summary and Epic Name fields.
DESIRED SOLUTION
As the user is inputting in the Summary field, the Epic Name field live-copies the value over so that the user immediately sees the effect.
This can be implemented with scriptrunner behavior.
But there are a few questions to answer that might impact the complexity of the solution.
Here is generally how to proceed:
def epicFld = getFieldByName('Epic Name')
def summaryFld = getFieldById('summary')
epicFld.setFormValue(summaryFld.value)
This simply sets the epic name to the value of the summary each time the summary field content is changed. You will only see the effect when you change focus from the summary field.
In theory, you can now change the Epic Name to something else and submit the form. But the next time the edit form is open, if the epic name field is available, it will be updated when Jira populates the form with values from the db and reset any manual entries.
That's why I said it could get complicated. If that's a possible scenario for you, then you need to code in some rules when to and when not to update the epic name (such as only update the epic name if there the value stored in the db is empty or doesn't yet exist).
I hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.