Hello Atlassian Community,
I found a post that is very similar to the issue I am facing, with regards to writing automation across Jira and JPD. The example that I read that was very close to my scenario is
Solved: Automation Help - Copying Target Start from a JPD ...
except that I was looking for automation to flow from Jira FixVersion into Target Release field (which I believe is a ?custom field. Not sure). FixVersion is an open text field and Target Release is a drop-down, which I can configure to have the same pre-populated list that matches FixVersion in Jira. Otherwise, I can use Requested Delivery Timeline (short text field).
I need guidance on how to write the automation rule, namely the smart value string for the value to land in either field.
I appreciate any help.
Hi @Sandy Kim
The Fix Version description can be fetched via a smart value in Jira automation.
But the Fix Version description can't be updated via automation, this can be done via the GUI or the API.
But can you describe what you exactly would like to happen?
Hi Marc,
Thanks for responding. I'm looking to keep the JPD project in sync with the corresponding Jira project. We're using JPD to be purely customer-facing so whenever the Product Owner updates the FixVersion on any issue, it will automatically update the Target Release field in JPD.
Is this achievable using smart values alone? Was hoping to do this without needing to bring in one of my developers.
Thanks,
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sandy Kim
I read that the "Target Release" field is a drop-down, what are the drop down values?
So if the "fix version" field changes the Target Release needs to be updated, to what?
The fix version description you mean is just text set to a version number, this is not a change of the fix version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
I want to have the values match in Target Release and Fix Version. Tried the smart value but not yielding results.
My screenshot provided is an old one. Kindly disregard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sandy Kim
Good day to you Sandy. Here are some of the smart values that are available for versions:
{{issue.fixVersions.name}}
: Returns the name of a fix version. {{issue.fixVersions.description}}
: Returns the description of a fix version. {{issue.fixVersions.releaseDate}}
: Returns the release date of a fix version. {{#issue.fixVersions}}name:{{name}};released={{released}};id:{{id}}{{^last}},{{/}}{{/}}
: Iterates through all fix versions and extracts their name, released status, and ID. {{version}}
: This smart value is used when you need to refer to a specific version (not a fix version for an issue).
{{version.name}}
: Returns the name of the version.{{version.description}}
: Returns the description of the version.{{version.released}}
: Returns true if the version is released, false otherwise.{{version.releaseDate}}
: Returns the release date of the version. {{issue.Target end}}
. Target release
Eample in use:Here is a link to the available support document https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--version--
I would say it would be nice to see a screenshot of what you have today so we can help provide more details around what might need to be fixed or changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aaron. Thanks for replying. I pasted screenshots of the audit log and automation rule. I think I messed it up because it's not working. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sandy Kim
I believe you can take the smart value and add it to the field itself so if you want the value on Target Release just put the smart value {{issue.fixVersion.description}} in the box value for Target Release. That should work as long as the value is readable to the value in the box.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for jumping in to help. I have tried your suggestions but it's not working for me but that's ok. I'll escalate to tech support now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe this has to do with the values not be defined the same. I have had that issue when the field I need the data in is not formatted the same as the field that it is coming from.
I am guessing as stated that it needs to use the API to update it like what was stated above.
I hope you find your answer.I will continue to see if I can find a better answer. I have request Atlassian to help with this post. We may have an answer within 2 days.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aaron Geister [Trundl] . I was able to get in touch with Atlassian Support. I had to replace the smart value with {{triggerissue.fixVersions.name}} and this worked!
The value entered in Fix Version in JSW flowed into the respective JPD project.
Thought you might want to know. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.