The CreatorCon Call for Content is officially open! Get started here.

Inline script in flow designer

Julius28
Tera Expert

Hi,

 

I have form which has flow with jira subflow, once ticket is submitted RITM is closed skipped and it creates Jira task on specific board, but currently there is an issue with passing one of the fields to jira because SN Flow designer is not passing non user input fields in flow designer. 

 

I have Label type field called "Auto-incident", after that there are two checkboxes "Yes" and "No" in the form.

Based on user selection in form, flow should send selected checkbox to jira board, currently it does that but the "Auto-incident" label is not passed, therefore on jira task it shows:

 

Options
[ ✓ ] Yes
[ ⤫ ] No

 

I thought it could be possible to create script in flow designer.

So in order to fix that i had idea to put plain text in the flow designer field something like ''Auto-incident'' and there bellow that field it would display from the form which checkbox is checked. 

 

Example output:

Auto-incident

[ ✓ ] Yes
[ ⤫ ] No

 

If there wouldn't be some special requirements for fields and UI policy, then I would use Multiple choice or select box and there wouldn't be such issue but because requestor wants special logic behind, therefore only solution was to use label and checkboxes in my scenario.

 

Does anyone have some idea how to deal with this or some script for flow designer I could use? Because currently I have spent already almost two days and feel stuck with no better ideas.

 

Thanks.

7 REPLIES 7

The Machine
Kilo Sage

If your flow is tied to a request item and you are using the "Service Catalog" initiation in your flow, there is a Get Catalog Variables action you could use to get the variables, and then create a flow variable, and pass those values into a flow variable to be used in your Jira flow.

A little confusing, but essentially, if you are following the SOP / Best practice for creating catalog item flows with Flow Designer you should be able to pull the necessary variables from the user input form related to that RITM.

Good luck 🙂 

Hi!

I already tried to use flow variables but it did not work for me, even though im using the "Service Catalog". Not sure what im missing. 

Julius28_0-1710485576701.png

 

Hey @Julius28,

 

You would have to select the '1-Get Catalog Variables' to fetch the variables from the RITM.

e.g.

JamesChun_0-1710490603863.png

 

Cheers

Hi! I have done it like that before but it does not work in this case,  since Label field type is not visible under Get catalog variables, because SN is not adding in Flow non user input field types.