How to sync from one issue type of Project A to different issue types in project B based on field selection

Originally asked by Rakesh Govardhan on 23 September 2019 (original question)


From one issue type in project A, we to need to sync to different issue type in Project B based on the field selection in Project A


Answer by Yaakov Shamii on 23 September 2019

You can set the issue type name in the sync rules as you want:

issue.issueTypeName = “Your Issue Type Name”

and before that put any if you have, so it will look something like that:

if (replica.customFields.“your custom field”?.value== “custom field value”) {
issue.issueTypeName = “Your Issue Type Name”

}