Hi
We have a need to copy a linked issue key to a custom field. So from a JSD project, we are creating a linked JIRA issue in Jira project(ABC). When the user hits "Create Ticket" status in JSD workflow, a Jira ticket gets created in project ABC with an issue like as the child of JSD. Now once ABC-1 is created we want that key ABC-1 to be copied into a custom field in JSD project.
We have JSU add-on and we tried all options in post function-Copy Value From Other Field (JSU) but no luck. Any thoughts?
The key is not the same type of field as whatever you are trying to copy it to, so the field copy function fails.
JSU can't convert between the types, you are going to need something a bit more clever.
The Key for an issue is a key object, and a text field will take objects that are derived from strings.
You should be able to do something like
issueToChange.setCustomFieldValue(customfield, issueToGetKeyFrom.getKey() )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using Copy Value from Custom field (JSU) within the same issue on one of the tranistion. But I see the value is not being copied.
I tried to place this post function before Update change history but still I dont see any change.
Can anyone help on this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using Scriptrunner by any chance?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.