Update summary with JIRA issue key when the issue is created

Jan Thore Kristiansen February 22, 2017

I need to have the issue key in the end of summary when a issue is created.

Have tried to do this with an Post function on the transaction to open issue.

But I don't find documentation of available variables to use.

Tried following: The Summary of the issue will be set to issue.summary + issue.key.

But it did not work. Any tips?

We are using Cloud version of JIRA.

2 answers

5 votes
Jon Mort [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.
February 23, 2017

Hi Jan,

<productPitch>

This is exactly the kind of use case we built ScriptRunner for JIRA Cloud for. Use the modify issue post function with the following code:

issueInput.fields.summary = "${issue.summary} ${issue.key}"

Any issue fields can be read or set in this way not just the system fields.

</productPitch>

Regards,

Jon

0 votes
i_educacionalshekinah January 3, 2023

Olá 

Suggest an answer

Log in or Sign up to answer