Forums

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

Are smart values supported in JIRA Automation?

Rob Jahn
Atlassian Partner
April 21, 2020

I would like to be able to use smart values (https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/) ... In the custom data for the automation.  Is this possible?

For example I add project, service, stage custom context fields to a story, and then I want to refer to them in the POST custom data setup for the 'Send web request' automation component.

{
"project": {{project.value}},
"service": {{service.value}},
"stage": {{stage.value}}
}

2 answers

1 accepted

Rob Jahn
Atlassian Partner
April 21, 2020

Well I did make a new field (called project in this example)and tried a few ways to reference it in the post body

{{project}}

{{project.value}}

{{customfield_10031}}

{{customfield_10031.value}}

 

When I look at the automation audit log, the value for this field is not getting resolved.  Perhaps I am not using the right syntax?

attached are a few pics.

Picture1.pngPicture3.pngPicture2.png

John Funk
Community Champion
April 21, 2020

WOW - that's a lot more in depth for my experience for this type of automation. 

I suspect that creating a custom field called project will give you other problems down the road. Why did you name it that and it will probably get confused with the system Project field. Not sure that is your problem, but it could be. 

Having said all of that, I would suggest going ahead and opening a support ticket with Atlassian here:

https://support.atlassian.com/contact/#/

Rob Jahn
Atlassian Partner
April 21, 2020

project was just an arbitrary argument name.  I just renamed to project1 and re-tried, same issue.

The use case was just to enable an easy way for the person working the JIRA ticket to fire off a call to some REST service.  My thought was to use the new JIRA automation to call my REST service, but I want the parameters to just pulled from JIRA ticket fields or allow the JIRA user to adjust them before they manually run the automation step.  I am trying to avoid developing a custom "connected" app.

John Funk
Community Champion
April 21, 2020

Understand. I would submit a request and let the Atlassian folks guide you.  :-)

Rob Jahn
Atlassian Partner
April 21, 2020

Thank you I submitted a request.

Rob Jahn
Atlassian Partner
April 28, 2020

What I learned from support is that I was using a "next-gen" JIRA project and smart values are not fully supported yet.  I made a NON "next-gen" project and I was able to get the REST request automation to work.  But in doing this, I learned the automation web service gives an error if you have an unsigned certificate in the target URL.  But made some progress.

Like Rosa M Fossi likes this
0 votes
Neetu Verma
Contributor
March 4, 2021

Does anyone know if Smart values are supported for automation in NEX-GEN. Did Atlassian make progress?

Simple as due date which is not even a custom field I can't get it to work :-(

My rules work perfectly in Classic but not in Next Gen

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events