2

I'm trying to use the JIRA connector to change the status of JIRA issues. After entering the necessary values (issueId, statusName and transitions) I am getting the following error when trying to generate a sample: TypeError: Cannot read property 'name' of undefined.

Edit Screenshot: enter image description here

Luis Dille
  • 67
  • 4
  • Could you please add a screenshot luis? – Sebastian Lang Nov 12 '19 at 15:39
  • where are you taking the transitions from? It would be best to take them from the issue itself (by doing a getIssue beforehand, for example). The connector expects the transitions to be an array of objects, each object having a "to" property which itself is an object with a "name" property (this is where the error is generated). – cipak Nov 14 '19 at 08:56
  • Screenshot added. – Luis Dille Nov 14 '19 at 11:24

1 Answers1

2

The Update Status action needs the whole transitions array. It searches this array for the status name you provide (which can be hardcoded, eg: "Closed"). To make it work, just replace [{"id": transitions[2].id}] with transitions :)

cipak
  • 1,414
  • 1
  • 14
  • 20