Forums

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

How to copy all fixversions to another custom field

[라이브_PM] 차승연
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2022

I wanna copy fixversions's values to custom feild in same issue.

And I have multiple fixversions in one issue.

So multiple fixversions should be copied custom field not just one value. 

I can copy first value of fixversions, but others are not copid.

(the below image that I made using smart value "{{issue.fixversions}}"

 

20221124_114215.png

1 answer

0 votes
carlosughini
Community Champion
November 23, 2022

Hello there,

I would like to first make a question: What problem are you trying to solve by copying the fixVersion value to another field?

Below is a snippet from the Automation documentation associated with fix version smart values. If you look at the example the use {{name}} to extract the version name. You should be able to fit catenate that into the desired label. However, will you trigger this in fix version being updated? How will you deal with multiple versions? I can see the screen bit complicated possibly. Maybe a better question is why are you seeking to do copy the fixVersion values to another field? Why can you not simply use the fix version? 

 

{{issue.fixVersions}}

Used to access the values in an issue's Fix Versions field. Because this smart value deals with multiple items (i.e: issues can have many fix versions), it can be used with the # symbol to apply the rule to each individual fix version. Learn more about using smart values with sections and lists.

Available properties

  • {{issue.fixVersions.name}} - Returns the name of the fix version.

  • {{issue.fixVersions.description}} - Returns the description of the fix version.

  • {{issue.fix.Versions.archived}} - Returns true if the fix version is archived, and false if not.

  • {{issue.fixVersions.released}} - Returns true if the fix version is released, and false if not.

  • {{issue.fixVersions.releaseDate}} - Returns the fix version's release date. Can be combined with other date and time smart values. Learn more about date and time smart values.

Example

In the below example, we list each fix version that the issue has been added to, followed by the version's release date, in bullet point form.

  1. This issue is part of the following releases
  2. {{#issue.fixVersions}}
  3. * Fix version: {{name}}, released on {{releaseDate}}
  4. {{/}}
  5. // returns
  6. This issue is part of the following releases:
  7. Fix version: Version 1.1, released on 2019-08-10T00:00:00.0+0000
  8. Fix version: Version 1.5, released on 2019-08-02T00:00:00.0+0000

Please check the information above and let me know how it goes.

Kind regards,

Carlos

Suggest an answer

Log in or Sign up to answer