Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Bamboo Build Number in a Jira Issue created through the Jira Rest API

José Compadre Junior September 22, 2020

Hi folks,

 

I am using the Create Jira Issue Rest API for Jira Software Server and I need to inform a Bamboo build number inside it, so that it would appear as if it was created manually. 

Jira Server Version: 8.5.1

Bamboo Version: 7.0.3 

Steps to Reproduce:

  • Create a build plan in bamboo
  • Create a script task
  • Invoke Jira API through curl. Example:
    curl \
    -D- \
    -u marco.goncalves:3323334987Ma \
    -X POST \
    --data '{ "fields": { "project": {"key": "DS"},"summary": "No REST for the Wicked.", "description": "Creating of an issue using IDs for projects and issue types using the REST API", "issuetype": {"name":"Bug"} }}'\
    -H "Content-Type: application/json" \
    http://jira.awsoatsolutions.net:8080/rest/api/2/issue/

Check the image below how I would like the issue to appear inside Jira.

WhatsApp Image 2020-09-22 at 17.46.13.jpeg

However I could not find which parameter I need to inform to the Rest API payload to inform the build number. 

 

Thanks in advance. 

 

Best regards,

 

José Compadre Junior

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events