Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to add form field value to a request type field using smart values

Leigh Elliott June 1, 2022

Hi Everyone,
I have a request type that uses the "Summary" field.  Attached to this request type is a form.  Within this form is a field called "Name of new employee".  The "Summary" field on the request type is set hidden and I have added default text to it of: "New Employee Request".

What I want to be able to do is add the value of the "Name of new employee" form field to the "Summary" request type field so that it defaults its value to:

"New Employee Request - {{ name of new employee }}"

For example:
"New Employee Request - Joe Bloggs"

Where "Joe Bloggs" is the value contained within the "Name of new employee" form field on issue submission.

I'm hoping there is a way to do this using smart values or field ID?

Is there any advice anyone could provide on if the above is achievable between request type and the new Forms feature and if so how?

Thanks in advance. 

1 answer

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 1, 2022

@Leigh Elliott -

Welcome to the community.  Try to use the following syntax to see if it resolves your problem.

"New Employee Request - {{ issue.Name of new employee }}"

Here are a few additional links for your references -

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Leigh Elliott June 2, 2022

Hi Joseph, thank you for your reply.  Unfortunately this did not work, see results below:

Screenshot 2022-06-03 151757.png

"Full Name of New Employee" is the label of the text Form field.  

I don't think this will work because the "Full Name of New Employee" is not an issue field, it is a form field.

I've noticed that Form fields have a "Field key" at the bottom of their field settings panel, I wonder if this can be set and used to reference the form field?

Leigh Elliott June 2, 2022

Looks like its not possible until Atlassian releases the REST API for forms:
https://jira.atlassian.com/browse/JSDCLOUD-10671

Like Maksim Lebedev likes this
Jared October 28, 2022

I am able to do this by using the custom field value. 

Offboard -- {{issue.fields.customfield_10070}} {{issue.fields.customfield_10071}}

Where 10070 is First name and 10071 is last name.

Like Samiha Patel likes this
Samiha Patel January 29, 2024

Hey Jared,

how are you able to find the custom field value? I tried this.

https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names

While I can find all the custom field smart values of the issue key, not the forms field.

 

Please let me know. Appreciate your response.

 

Thanks,

Samiha

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events