Forums

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

Custom summary field value

martinh May 10, 2023

Hello, 

I would like ask you for help. We have Jira Software (server version) with Jira Service Desk and with setted automation when public issue is created then automatically internal issue is also created. I would like to set custom summary value for created internal issue with post script function. Custom summary have to be in shape = customfield + public issue summary (something like: "SD13 - issue summary". How can I do this?

2 answers

1 accepted

1 vote
Answer accepted
martinh May 10, 2023

I was able to fix it with JSU postfunction - Create A Linked Issue (JSU). I had to add new Sub-Function - Copy to New for Summary -> Summary and after that, I was able to use Copy to New for Key -> Summary.

image.pngFinal linked issue summary is in form:   SDTS - Create new account

SDTS - Issue Key from External Service Desk
- prepend separator
Create new account - Original summary which was cloned from External Service Desk to internal issue

1 vote
John Funk
Community Champion
May 10, 2023

Hi @martinh 

You are creating the internal issue using automation for when the public issues is created? If so, then in your automation rule, set the Summary to:

{{triggerIssue.key}} - {{triggerIssue.summary}}

martinh May 10, 2023

Iam using JSU postfunction called Create A Linked Issue (JSU) which create linked issue between public and internal project and copy some field value from public to internal issue. I would prefer postfunction to do that.

John Funk
Community Champion
May 10, 2023

I see - I am not familiar with that add-on and what is available with the Create a Linked Issue function. You should check with the vendor to see if they have post functions as a part of the toolset or you will need another add-on like Automation for Jira or JMWE. 

martinh May 10, 2023

In that plugin there is option to copy field value from origin to new issue with option to overwrite, append or prepend - but probably Iam doing something wrong, because its only working in overwrite mode...

image.png

image.png

Am I able to create new linked issue from public to internal project with copy some values from public issue to internal issue with setted custom summary and all these by Automation function in Jira?

John Funk
Community Champion
May 10, 2023

I would think yes that you could do that. Try the Copy to New select the Summary from the source field to Summary field of the destination and use Append. 

Give that a try and see how it does. 

martinh May 10, 2023

Sadly its not workign as I thought. Using that JSU postscript function everything is working fine, just that function Copy to New with Append function is not working. It will linked create issue, it will copy some field values from public to internal project but Copy to New (for Key -> Summary fields) with Append function is not working - it will overwrite (not append) the internal project Summary to Key copied from public project.

John Funk
Community Champion
May 10, 2023

I would contact the vendor and ask them the intent of the Append function and how to solve. 

martinh May 10, 2023

Okej, I will try to contact the vendor of plugin. Thank you.

Is there any application or something that can help me to create postfunction script? I found several scripts that are not exactly what Iam looking for, but maybe with little change they would be usable.

John Funk
Community Champion
May 10, 2023

JMWE is an excellent (maybe the best) app for me to create post functions. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4
TAGS
AUG Leaders

Atlassian Community Events