I am new user for JIRA. I am building a Test Automation application and which will have capabilities to add defect/issue in JIRA in case test automation fails. I have multiple clients and each having different JIRA configuration with different set of custom fields. I want to build a capabilities in my application where I can create issue creation REST packet dynamically based on client JIRA environment. I am facing challenge because some fields take input in value, some take input in name. some take value inside {...}, some take [{....}] etc.
Can you please help me to understand how I can prepare JSON packet dynamically if user provides all required input fields details?
i.e.
- "customfield_10512": [{
"value": "No"
}], - "priority": {
"name": "Medium"
}, - "customfield_10411": [{
"value": "Bank - IT"
}] - "summary": "Sample UTS ten test",