- Viacheslav
- Sep 27, 2019
- connector-cloud-jira
- feature-workflow
- Comment
1 answer
- 210
Hey Vyacheslav,
Can you give an example on how the synchronization needs to look like please?- Viacheslav
Sure thing. I need a functionality similar to this:
if (replica.statusCategory == "Done") {
workflowHelper.transition(issue, "Resolve this issue")}
- Roman
Can you try
if (replica.status.category.name == "Done") {
workflowHelper.transition(issue, "Resolve this issue")}
- Viacheslav
I'm not sure about 'status.category', in Jira's JQL it is 'statusCatefory'. Anyways, I used another approach as follows:
if (replica.status.name == "Escalated" && issue.status.name == "Waiting for customer") {
workflowHelper.transition(issue, "Respond to support")
} else if (replica.status.name == "Canceled") {
workflowHelper.transition(issue, "Reject")
} else if (replica.status.name == "Closed" || replica.status.name == "Resolved") {
workflowHelper.transition(issue, "Resolve this issue")
}
CommentAdd your comment...