Hey folks,
I'm having a very hard time figuring out how to do something that I thought would be fairly simple due to the limitations of Jira automations and JSM forms.
Usage details: We have a portal setup for our service techs to access the forms they need for their different workflows. The form in question is a part discrepancy report. Following the workflow through, a series of forms will get added to the ticket based on selections made as they progress.
Each ticket will end up with one or more of each form type used. One form in particular is an inventory request form to pull repair parts.
Problem - I'm trying to have an automation that creates a new Jira issue in our non-JSM project that handles things like purchasing and inventory requests, then copy the request data (or attach a PDF of it) into that new issue.
The form data itself (pulled from the Forms API) within an issue looks like the following:
The example here does not imply any expected order.
[
{
"id": "b47f2887-d8fe-4ba0-8124-8b6d2901599f",
"formTemplate": {
"id": "a7ab7457-49a5-4305-9e85-9be50022cc02"
},
"internal": false,
"submitted": true,
"lock": false,
"name": "Discrepancy Form",
"updated": "2024-10-04T21:20:30.108Z"
},
{
"id": "a8770a40-c083-4d06-bbf3-83d7dcefc53e",
"formTemplate": {
"id": "9a720495-acf4-4681-a2b1-372405742a1d"
},
"internal": true,
"submitted": true,
"lock": false,
"name": "Inventory Request Form",
"updated": "2024-10-08T19:08:41.888Z"
},
{
"id": "b99c251a-a6a0-43d5-ba33-007fd71e85aa",
"formTemplate": {
"id": "0c830a64-e128-4011-8c70-75c59523c93c"
},
"internal": true,
"submitted": true,
"lock": false,
"name": "Repair Action Form",
"updated": "2024-10-08T19:31:23.962Z"
},
{
"id": "597142cb-ba47-4624-a5b7-5c08ec38c1be",
"formTemplate": {
"id": "9a720495-acf4-4681-a2b1-372405742a1d"
},
"internal": true,
"submitted": true,
"lock": false,
"name": "Inventory Request Form",
"updated": "2024-10-08T19:31:47.004Z"
}
]
Since the automation doesn't let me "see" the triggering form itself, I tried using Smart Values to:
Using Smart Values and loops combined with the 'Log Action' automation widget:
So, finally to my question(s).
Thanks in advance, even just for reading through this. The form automation limitations have been surprising and incredibly frustrating. Especially for what we thought would be a straight forward use case (i.e., attach a PDF of a specific form to a newly created issue).
There is also a process option that can address my above concern, which would be that an added inventory request form would have to be filled out and submitted prior to adding any other forms to the ticket. That would mean that the last form in the object list is the one we're looking for. It's a reasonable request from a user perspective that makes this a tractable problem.
Currently our solution is to simply have our automation create a new portal request for the user that is an inventory request. We link the new issue to the service ticket with a "created by" link and use smart variables in the summary to indicate what ticket and asset it is for, which makes it easy to find visually under someones "open issues" view in the portal. To keep the asset record cleaner in JSM, we're leaving the custom asset object field blank for inventory requests generated this way. It still appears in the record for the service ticket anyway, just under linked issues rather than the stack of forms. Good enough for our needs.
I'm marking this as "answered" for now since there's been no other suggestions and either of these options here are viable solutions.
Updating my own question to the extent that I thought that I had found a workable solution. Unfortunately, this also does not work because advanced branching on a list variable executes in parallel. However, it looks like Atlassian is currently working on a way to toggle parallel execution for advanced branching off for cases like this where you actually need a for iterator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.