Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set issue security when creating issue from confiform form

ebrahim rezaian May 23, 2023

Hello 

I have created a confifom form in confluence that create issues in jira. but i want all the created issues with a "security level" of "high". below you can see my code. but it doesn't work and i receive an error.

 

Error :

com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"security level":"Field 'security level' cannot be set. It is not on the appropriate screen, or unknown."}}

 

My code :

{ "fields": { "project": { "key": "STTS" }, "summary": "[entry.pageTitle.escapeJSON]", "security level": ["high"],               "labels": ["Proceedings"],             "assignee":{"name":"[entry.assignee.escapeJSON]"},              "issuetype": { "name": "Task" } } }

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
May 23, 2023

Hi

There is nothing more to add to what Jira tells you.. there is no such field as "security level"

You need to know the field name in order to set it through the Jira REST API (ConfiForms uses that internally to communicate with your Jira)

Alex

ebrahim rezaian May 23, 2023

I have found true name of issue security and its called "level"

but i receive same error. could you help me?

Alex Medved _ConfiForms_
Community Champion
May 23, 2023

Then it is not a correct field name...

That must be something like customfield_XXX

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events