Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Restrict workflow transition to a specific project in JIRA

Hello,

I'm applying a post function to a workflow to update JSU field value to a workflow which is shared by other projects, is there any way to restrict this post function only for a specific project rather than effects all other projects using the same workflow.

Kindly advise.

3 answers

1 accepted

0 votes
Answer accepted

@Ramya Yarru have you checked if your post function is after the precondition and had "Precondition must de True" checked?

 

image.png

Yes @Manuel Galván

Please find the attached screenshot.

Capture.PNG

@Ramya Yarru I see that you are using it in the create issue, maybe this is the problem, try in another transition to discard it

Hi @Ramya Yarru ,

 

Have you tried using the Value in Field Precondition. Please see a simple example as shown below Precondition.png

The above precondition will check if you are creating the issue in the project SJSU and then only execute the postfunction. 

We have also internally created a support request in our portal for the same if you need any further help. 

Please sign up to our portal and let us know so that we can provide you the required access to the request. 

Regards,
Vijay Ramamurthy

Hi @Ramya Yarru we use JMWE, it lets you add a any groovy condition. If you use JSU, then you can add 'Precondition: JQL (JSU)' and in JQL Expression filter by project.

Hello @Manuel Galván  Thank you for your answer.

I have used a precondition and set the precondition to true on my post function but that did not work and effected all other projects associated to workflow.

Please find the attached screenshot on pre-condition

pre-condition.PNG

@Manuel Galván  Sure, will try that :)

 

@Vijay Ramamurthy - Appfire Yes, I was able to achieve this using value pre-condition but I have a query. I have a condition to check if the Project belongs to Project A or Project B and only if this is satisfied then execute Post function. Should I add 2 preconditions ( 1 for Project A and other for Project B) using update value and 1 post functions or should I add 1 pre condition for Project A -> Post function and another for Project B -> Post function?

Post function is the same for both Project A and B.

Hi @Ramya Yarru ,

 

You can use precondition with postfunction similar to the one shown below 

2021-02-16_13-16-47.png
As per the above screenshot if the Project is SJSU then the summary field will be copied to description. If you try for other projects lets say test then the summary field will be copied to the custom text field. 

Regards,
Vijay Ramamurthy

JSU.PNG

 

 

 

@Vijay Ramamurthy - Appfire PFA, I have 2 preconditions and both should be applied to both post functions. Is the above approach fine or should I defined Step 1 and 2 again for Step 4 (clear Field value). As of now it works but I just want to get confirmation on correct procedure.

Hi @Ramya Yarru 

 

Yes the way you have configured should work for both CWAP and CWAV projects. 

Please let us know if you need any further information .

 

Regards,

Vijay Ramamurthy

Great, thanks for confirming :)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you