I have a variable {{request}} which when logged prints the proper JSON object which is verified to work in Postman as well as when pasted into the body of Custom Data for a POST request. But when I use {{request}} as the body the request is bad and fails, even though the same output worked when pasted from the Audit Action of the same variable?
The SmartValue in the "SummaryRequest":
{ "model": "gpt-4-turbo", "messages": [ { "role": "system", "content": "You are a helpful assistant that summarizes Jira issues." }, { "role": "user", "content": "Summarize the following Jira issue in a single sentence with 20 words or less and don't include the words JIRA or Issue in the summary:{{ProposalLevelThree}}" } ], "max_tokens": 150, "temperature": 0.5 }
Log Action Output for "{{SummaryRequest}}"
{ "model": "gpt-4-turbo", "messages": [ { "role": "system", "content": "You are a helpful assistant that summarizes Jira issues." }, { "role": "user", "content": "Summarize the following Jira issue in a single sentence with 20 words or less and don't include the words JIRA or Issue in the summary:A common business problem in the Electronic Health Record (EHR) space is managing patient follow-up and appointment adherence effectively. Many healthcare providers struggle to keep track of missed appointments, identify patients at risk of non-adherence, and ensure timely follow-up care. This often leads to poorer health outcomes, increased costs, and administrative burden for providers. Feature Idea: Automated Follow-Up and Adherence Tracking System Business Problem: Providers need an efficient way to track patient adherence to scheduled appointments and follow-up care recommendations. Currently, missed or canceled appointments go untracked, and follow-ups are often handled manually, which is both time-consuming and prone to error. This can lead to gaps in patient care, increased risk for complications, and preventable health issues. Feature Solution: Develop an Automated Follow-Up and Adherence Tracking feature within the EHR that: • Automatically flags patients who miss or c"}], "max_tokens": 150, "temperature": 0.5 }
Send Web Request Log Output:
@Ryan Fisch , Welcome to the Atlassian Community!
Could you share some screenshots about how you're collecting this variable to use in Jira Send Web Request?
This will help us to see if there's anything else missed.
UPloaded images of Variable Configurations as well as log outpts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe it is the special characters contained in your message content. I would say you should try the following: {{SummaryRequest.jsonEncode}}
I have had other integrations done with OpenAI and it worked fine using .jsonEncode on my variables.
Could you try and see if it works?
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.
That was it, thank you so much....what I was missing is a list of functions available for Smart Value's is there a good page with a comprehensive list?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to know that worked, @Ryan Fisch
You can see this page here to know more about variables functions in Jira: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
Have a nice weekend!
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.