Forums

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

Add site field to summary field

Bill Morris August 8, 2018

When our users create a ticket they must specify a site.  How can I add that information to the summary field while still retaining what the user entered into the summary field?

 

I've tried using the Automation under project settings but the summary text is overwritten.  Ideally I'd like to prepend the summary text with the site.

 

 

3 answers

1 accepted

1 vote
Answer accepted
Joe Kyle
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.
August 8, 2018

Hello Bill,

Alexey's answer is true. 

However if you want to try this without the plugin you may be able to do the following:

Go to the workflow associated with the projects (sites) you are trying to capture. Click on the first stem of the workflow after Create. Then you will need to click on Post functions in the box which pops  up. Then click Add Post function. Then look for the post function called Set Field Value. Select it by clicking the radio button. Scroll to the bottom of that page and click Add. In the form that appears set the Field to Summary. And set the value to {{ issue.fields.summary }} -- {{issue.fields["Project"].name}}

Scroll to the bottom then hit Update. You will have to Publish Draft for your workflow to take effect. Then just run a test ticket. You should see the summary and the project name appear together. 

summary_and_project.JPG

 

 

2 votes
Alexey Matveev
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.
August 8, 2018

Hello,

You can do it  with the Power Scripts add-on.

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You can write a post function with a code like this:

summary = summary + " " + #{Site} 

You can use the 30 days trial period. You can find more info about post functions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forpostfunctions:

Bill Morris August 8, 2018

Thanks for the suggestion.

 

Do you know if there's a way I can do it without an add-on?

0 votes
Bill Morris August 9, 2018

Thank you both for your help.  I ended up solving my issue using an add-on but only got there because both of you pointed me in the right direction.

Joe Kyle
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.
August 9, 2018

Glad to help Bill. 

Joe

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events