In response i got this:
It’s Aleksandra from Deviniti, the vendor of the Extension app, and I will do my best to assist you further.
I can see that you've recently reached out to our support, asking for advice on how to programmatically set bundled field values but, unfortunately, we're unsure if your question relates to the Server or Cloud version of the Extension app.
Please kindly specify the hosting and we'll be happy to share further instructions in his post as well!
Please find more details about the possible approaches below.
If it comes to accessing bundled fields values on Jira Server/DC, some time ago we developed a dedicated Java API which allows for using data from subfields in ScriptRunner, or any other similar app. For more details, I encourage you to see the following articles in our online documentation. Hopefully, you will find it useful!
We are also planning to create our own REST API that will provide such information, and a corresponding task is already in our product’s backlog. What is more, at this stage there are still a few other approaches you could use to reference the subfields data via REST.
One of them is accessing Bundled Fields values via REST API, however, it involves the use of ScriptRunner. We’ve already verified that the Java API we deliver for bundled fields is compatible with custom REST endpoints that can be set directly in ScriptRunner. We’ve also checked that the combination of those two allows for building a PUT or POST request that utilizes our dedicated Java API to update or create bundled fields data.
As an alternative, you could also include one additional parameter in your Jira REST API call, and use renderedFields. Such a rest call will return all subfield names, and more precisely the form of the field which is presented in the e-mail notifications we described in this article.
Please accept my apologies for the lengthy comment although I hope that all the above explanations and hints will prove beneficial.
In case of any additional questions or doubts, feel free to contact us via our service desk. We’ll be happy to provide further assistance with some examples!
Glad to be of help!
Unfortunately, at the moment we do not provide any dedicated approach for PHP. However, it will be possible once the public REST API for Bundled Fields is available. :)
A corresponding task is already in our backlog and we encourage you to watch the Extension app on the Marketplace to be informed about all new releases. We'll be also happy to inform you about this feature directly. Therefore, if you wish, feel free to contact us via our portal.
When i create bundled fields in jira like First name, Last name, Company, Country ...etc,
all those fields will be wrapped in one custom filed like customfield_12345 when i access them over api - get request. So my question is how can i post data to that fields over api if they are situated in one custom field.
If this is true, you might want to have a look at their article how to use bundled fields with Automation. It seems that the actual data is stored in an issue property instead of the custom field itself, but I'm no expert for that.
If you want further help, I'd recommend to reach out to their support.
can you elaborate in a bit more detail what you're trying to do?
My understanding is that you want to update the customfield_12345? If this is the case, did you check out the edit issue endpoint. Here is described how you can perform a PUT call to an issue in order to change its fields.
Is this what you're looking for?