Forums

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

Automation Request to Link Issues Based on PO Number Custum filed

Krishna_Araveti September 23, 2024

 

Projects Involved:

  • Project A
  • Project B

When an issue is created or the value of the PO Number field is changed in Project B, I want the system to check if this PO Number value matches any existing issue in Project A PO Number Filed Value . If a match is found, the issue in Project B should be automatically linked to the corresponding issue in Project A.

Custom Field: Field Name: PO Number (same custom field in both projects)

i tried but not succeededUntitled.png

1 answer

0 votes
John Funk
Community Champion
September 23, 2024

Hi Krishna - Welcome to the Atlassian Community!

Can you share a screenshot of the variable? Also, why are you using a variable and not just using: project = "Sales & Marketing" and issuetype = Task and "PO Number" ~ {{triggerIssue.PO Number}}

I assume that the Audit log is not returning a value and therefore no link is happening? 

Krishna_Araveti September 23, 2024

Thanks for the response.

I am new to this that is why i am using variable, please suggest which way is recommendedUntitled2.pngUntitled1.png

John Funk
Community Champion
September 23, 2024

Can you try what I put above?

Krishna_Araveti September 23, 2024

yes, i tried , its not working. please find screenshots.Untitled3.pngUntitled4.png

Krishna_Araveti September 23, 2024

hi, any one can help me on this.

John Funk
Community Champion
September 23, 2024

Thank you for sharing those. Try creating a Branch and moving those last two steps under that. The Link action looks like it is trying to link to itself because it is the trigger issue and is not relating to the result of the Lookup Issue. 

I just did the same with using a Branch based on JQL instead of Lookup Issues (just use the same JQL you have in your lookup issues right now) and then put the link issue action under that Branch. 

Krishna_Araveti September 24, 2024

Thank you Very much. It is working As expected.

Like John Funk likes this
John Funk
Community Champion
September 28, 2024

Great! Would you be so kind as to click on the Accept answer button above to close this one out? Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events