Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Current »

Abstract

This code snippet sets a version field to versions of all its linked issues

Logic

Access the linked issues of the current issue, fetch the versions of each linked issue and return them.

Snippet

Set versions = []
issue.getLinkedIssues().each(){
  versions += it.get("<Name of the version field>")
}
return versions

Note that the above snippet fetches all linked issues for the current issue, except the Parent/Sub-task, Epic/Story, Initiative/Epic and Remote links

Placeholders

PlaceholderDescriptionExample
<Version field name>Name of the field of type VersionsFix Version/s

Examples

The output of this snippet is a Collection<Version> which you can use in a Groovy expression, for example, to set the Affects Version/s of the issue to the Affects Version/s of all its linked issues in

  • one of the Set field value post-functions
  • the Create issue post-function under the Set fields of new issue section

    Set versions = []
    issue.getLinkedIssues().each(){
      versions += it.get("versions")
    }
    return versions

References

Filter by label

There are no items with the selected labels at this time.

  • No labels