Forums

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

Consuming REST API - Submit a Change and populate all the relevant fields

Jean Pierre Du Plessis May 3, 2022

Hi


We are busy working on raising change via an internal form process. We need some assistance in identifying all the relevant field values and how to populate them, I cannot find what I am looking for on the documentation. Would be greatly appreciated if someone could share the relevant link with the info we are looking for, 

Example:

{
  "fields": {
    "priority": {
        "name""High"
    },
    "Implementation plan""String"
  }
}
I am getting a response stating that the field does not exist, so how does one figure out what we need to use?
{
    "errorMessages": [],
    "errors": {
        "Implementation plan""Field 'Implementation plan' cannot be set. It is not on the appropriate screen, or unknown."
    }
}
I can see the fields, "Implementation plan", "Backout plan" and "Test plan". How do we find the info needed to updates these fields in the API call when creating the Change?
API_one.png


1 answer

1 accepted

2 votes
Answer accepted
Jean Pierre Du Plessis May 3, 2022

Managed to figure it out. Thanks

 

in order to get to the field information you need to use it, you have to use the API to request that information from the backend. The logic behind the system is a bit fuzzy to me, but we will eventually get there...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events