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.
Well I did make a new field (called project in this example)and tried a few ways to reference it in the post body
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.
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:
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.
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.
If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events