Forums

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

Run post function if summary starts from "Request Access"

Serhii Vdovenko February 1, 2024

I'm trying to add a post function in transition.

I need the post function to run if Run this post-function only if a condition is verified

{{ issue.fields.summary contain "Request Access" }}

But I get error

Could someone help?

1 answer

0 votes
Mark Segall
Community Champion
February 1, 2024

Hi @Serhii Vdovenko - Rather than a post function, I would leverage native Jira Automation for this.  Your rule would look something like this:

  • TRIGGER: Issue Transitioned (To YOUR DESIRED STATUS)
  • ISSUE FIELDS CONDITION
    • Summary
      Contains
      Request Access
  • ACTION: YOUR DESIRED ACTION

 

Serhii Vdovenko February 1, 2024

Yes, thank you @Mark Segall 

I can do it on Automation (this is my plan B), but I have a task to make it in post functions.

We already have several post functions. But it already has

{{ issue.fields.summary == "Request Access" }}

, and small changes to .summary contain"Request Access" would be easier

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events