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.
@Ramya Yarru have you checked if your post function is after the precondition and had "Precondition must de True" checked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ramya Yarru ,
Have you tried using the Value in Field Precondition. Please see a simple example as shown below
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Manuel Galván Sure, will try that :)
@[deleted] 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ramya Yarru ,
You can use precondition with postfunction similar to the one shown below
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.