Forums

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

Link issue by taking value from text field

Siddesh Mahajan July 10, 2023

Hi Team,

 

As we cannot display or get the value of the linked issue from the customer port, I have created a text field where customers can provide a linked issue key and using automation link the issue. But further, I want to have a condition where issues must not link if the linked issue status is in closed status. We have the JMWE plugin but are unable to figure out the solution. 

 

Thank you

1 answer

1 accepted

1 vote
Answer accepted
Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 10, 2023

@Siddesh Mahajan 

You can use a BRANCH for JQL and inside the BRANCH put the following:

FOR JQL: KEY = {{issue.customfield_XXXX}}

Replace XXXX with the ID of the field where the user enters the key of the item to be associated.

Inside the BRANCH put a condition to check the status of the issue and only after that condition, put the action to associate with the current item.

Let me know if you have doubts.

Siddesh Mahajan July 11, 2023

Hi @Fernando Eugênio da Silva ,

 

Thanks a lot for suggestion. Following automation worked.

Screenshot 2023-07-12 105445.png

To take this more advance, I want to add an error on create screen if the issue key provided is closed or canceled. Is it possible or any workaround?

 

Thank you.

Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

@Siddesh Mahajan , glad to hear that worked!

An error on the creation screen considering the field issue key statuses would not be possible.

What you can do is create a second BRANCH with the same JQL with the opposite condition: If the STATUS is EQUALS: CLOSED, DONE, ETC

Then: Add a comment

In the comment add a response for the user saying that the issue filled on the field is closed.

Siddesh Mahajan July 13, 2023

@Fernando Eugênio da Silva , Thanks for quick revert and help

Suggest an answer

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

Atlassian Community Events