title: Jira create issue. Inserting text inline from an array
body: <p>I'm trying to programmatically create a table in Jira for a migration tool I'm writing. Inside the description, there's a table that holds all of the source and destination information. However, I cannot get the table to populate.
  My call data is as follows.</p>
  <pre><code>    const data={
      fields:{
          project:{
              key: config.jira.project
          },
          summary:&quot;Migration Tool - Migrating repositories&quot;,
          description: `Migating repositories\n
              Validated Bitbucket repositories:\n
              ||ID||Bitbucket Key||Bitbucket repo slug||Github Organization||Github repo name||
              ${input.validated.forEach(item =&gt; {
                  return (`|${item.id}|${item.bitbucket.projectKey}|${item.bitbucket.repositoryName}|${item.github.org}|${item.github.repositoryName}|\n`)
                  // console.log(validatedTable(item))
                  // return(validatedTable(item))
              })}
              
              Invalid Bitbucket repositories:\n`,
          issuetype:{
              name:&quot;Task&quot;
          },
          customfield_10005: config.jira.epic
      }
  }
  </code></pre>
  <p>At the moment, it's returning undefined.  How do I get the text too return and populate the table?</p>