Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,706
Community Members
 
Community Events
176
Community Groups

How to set a value to cascade child field via JIRA Rest API

I am testing a payload via Postman to add values into cascade field in issue ticket on JIRA environment (non-Cloud), normally we would pass info as such. 

"customfield": {"value": "Parent", "child": {"value":"Child"}}

However in our existing application, technical team made it impossible to pass information as above and ask us if possible to break down into two lines. Found something similar at "https://community.developer.atlassian.com/t/how-to-set-cascade-custom-field-value-to-ap-jira-opencreateissuedialog-issue/35987" (JIRA Cloud), but did not worked for us:

"customfield": { "value": "Parent" },

"customfield:1": { "value": "Child" }

Is there any other alternative?

 

Thanks.

1 answer

0 votes

Hi @Rene Salomao 

 

Welcome to the community!

You will need to set the cascade custom field like this:

 

 "customfield_xxxxx": {
"value": "xxxxx",
"child": {
"value": "xxxxx"
}

You will need to replace the Xs

 

Thanks,

Tim

Hi Tim,

The way you propose works when input through Postman, however our application does not allow us to pass info as you described. We would like an alternative as two separated entries. It may works on JIRA Cloud, but we are deployed into client infra...

Example (did not worked):

"customfield": { "value": "Parent" },

"customfield:1": { "value": "Child" }

I setup a test field for myself to see how it breaks down and also to use real values instead of Xs. It looks like you need to use the Ids for the field and the values.

Does your entry look like the one below?

{"customfield_23910": 25500}

{"customfield_23910:1": 25501}

Hi Tim,

My entry is "customfield_11547": {"value": "Infraestrutura", "child": {"value":"Windows"}}", since it won´t work using existing application, we were looking for something like that but so far no success:

 

"customfield_11547": {"value": "Infraestrutura"},

"customfield_11547:1": {"value":"Windows"}


Error message:

"customfield_11547:1": "Field 'customfield_11547:1' cannot be set. It is not on the appropriate screen, or unknown."

Try using the ID number for the value. Infraestrutura and Windows have 5 digit IDs that you can use. Should look something like this but replace the Xs with the ID number:

 

{"customfield_11547": xxxxx}

{"customfield_11547:1": xxxxx}

Hi Tim,

We used exacltly like your example, using values or IDs but no success. Checking with tech team if they are able to help us on the other application.

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events