Creating JIRA Issues via Direct Links, Custom Field with Child Values

Kyall Fordham-Weir
Contributor
April 24, 2024

Hello,

I'm attempting to setup some direct issue creation links (using : How to create issues using direct HTML links in Jira Server | Jira | Atlassian Documentation)

One of the fields I want to set a value in is a cascading select list, this has 2 'levels' of value. The JSON looks like: 

(I've cut the URL out) 

        "customfield_12412": {
            "self": "<URL>/jira/rest/api/2/customFieldOption/28378",
            "value": "CHANGE",
            "id": "28378",
            "disabled": false,
            "child": {
                "self": "<URL>/jira/rest/api/2/customFieldOption/32505",
                "value": "UPDATE",
                "id": "32505",
                "disabled": false
            }
        },
If I send;
<URL>/jira/CreateIssueDetails!init.jspa?pid=14700&issuetype=11502&customfield_12412=28378
I can get the first value in but, not the second as it's not got it's own field ID (that I can see) 
Anyone got any ideas on this one? 

1 answer

1 accepted

0 votes
Answer accepted
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2024

Hi @Kyall Fordham-Weir,

Try this:

<URL>/jira/CreateIssueDetails!init.jspa?pid=14700&issuetype=11502&customfield_12412=28378&customfield_12412:1=32505

Kyall Fordham-Weir
Contributor
May 28, 2024

Hello! @Kseniia Trushnikova - Sorry this took almost a month for me to reply to! 

Thanks for the information, it worked! 

Like Kseniia Trushnikova likes this

Suggest an answer

Log in or Sign up to answer