Scripted Field - Copy Fix Version from Linked Issue

Fairly self-explanatory but all the Questions on Community revolve around custom fields and/or calculating Estimates for the same based on Links. I just want to very simplypull the Fix Version of the Linked Issue (based on Link Type)andcopy it into this Scripted Field.

Keeps displaying an error though, regardless of whether I choose the Custom or Text templates.

From what I understand of the original question and its response, the intent was to get the latest fixVersion, I believe. That doesn't apply to me since I have another script in place for limiting the field to 1 value, but I kept it in there because it can't hurt (I thought).

Yes, I thought I should check, in case you were expecting something else.

My next thought - I don't think it.issueLinkType.name is a valid call, I think it should be it.issueLinkType.getName()

One other thought too - when these scripts chuck errors out, they go into the log, usually with a lot more information (for example, if I'm right about the getName, your code would be throwing something like "unknown property: name" when it hits it). When I'm using a preview to check a scripted field, I tend to be tailing the log alongside it.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.