Sync jira field 'affects versions'

Originally asked by REMI LAFRANCE on 10 August 2023 (original question)


Our Jira cloud is using a system field called ‘Affects versions’. I’m trying to send the string value from Zendesk as part of a drop down field.

I tried “issue.Affects_versions” , “issue.affectsversions”, “issue.Affectsversions” but none of them work.

Any suggestions on how to get this working?


Answer by Patrick Kolodziejczyk on 11 August 2023

You could “dump” your object in debug.error to see what field is provided :

debug.error(""IssueDump]"+issue.getProperties())

This should return all properties and value of them in the error part.

If your value is shown somewhere, you have your solution. If not, it’s probably not available.