The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

post function for Set field value KO

Carolina SILVA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 3, 2021

Hello, 

I need every jira created to have a SECURITY LEVEL set by default.

So I added a post function to Set field value (JMWE app) which seems exactly what I need.

I gave a field value which is NTG users only (that already exist on my security level settins) but it fails each time I create a new issue. I do not get where I am wrong. 

I receive an error report (thought JMWE) which is 

'Incorrect request: {"security":"Security level name 'NTG users only' is not valid"}' but in my Project issue security it exists and I copied/pasted it to be sure I do not make any mistake.

Can someone help me please? Thanks 

JIRA Post function 1.pngJIRA Post function 2.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
David Fischer
Community Champion
March 3, 2021

Hi @Carolina SILVA ,

unless you use the "Run as" feature of the Set FIeld Value post-function, the post-function will run as the "add-on user" (Jira Misc Workflow Extensions), therefore that user must be added to the "NTG users only" security level. In fact, any security level should always include the "atlassian-addons-project-access" project role, which automatically includes all add-on users.

The post-function can only see security levels it belongs to.

Carolina SILVA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 3, 2021

Helo @David Fischer thanks a lot, it works now.

David Fischer
Community Champion
March 3, 2021

Hi @Carolina SILVA ,

I'm glad it worked. Can you please "Accept" the answer so that other members can find it in the future?

Thanks,

David

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events