Lookup Issues - The option "our issue key" for field 'Epic Link' does not exist.
Asked by Abhishek_Ajmera:

I am trying to create a rule where trigger is any change to story points field on a story or task.

Action in this case is to update the Epic of the issue to have the sum

In the Lookup Issues, I have put the JQL "Epic Link" = {{issue.key}}

and then edit issues fields I try to update "Story Points" = {{lookupIssues.Story Points.sum}}

It always throws an error "The option "our issue key" for field 'Epic Link' does not exist." I can see on all our issues we have the epic link field showing up details section.

What am I doing wrong in this?

Or is there an alternative to doing this?


Answers:
author: Bill Sheboy
body: Hi [@Abhishek_Ajmera](/t5/user/viewprofilepage/user-id/4009097)

Are you using a company-managed or a team-managed project for these issues and rule? I ask because:

* company-managed projects link epic/children with the "Epic Link" field and use the "Story points" field
* team-managed ones use "parent" and "Story point estimate"

That would impact both the rule test conditions and the JQL used for Lookup Issues. And note that the spacing and capitalization are important for smart values, so confirm you have the correct values to get rules to work.

When in doubt, use this how-to article to confirm the exact names of the smart values to use for your project's issues: <https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>

Kind regards,  
Bill


author: Stefan Salzl
body: Hi [@Abhishek_Ajmera](/t5/user/viewprofilepage/user-id/4009097) ,

Could you add a screenshot of your automation rule and the audit log output? This would help get a better overview of the setting and identify the problem to find a fitting solution.

Thanks in advance.

Best  
Stefan

comments: author: Abhishek_Ajmera
body: Thanks for the response [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) I am adding the rules and the screenshots

![Screen Shot 2022-02-19 at 12.18.56 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184349i7C22F2C027B0B26D/image-size/large?v=v2&px=999 "Screen Shot 2022-02-19 at 12.18.56 PM.png")

**![Screen Shot 2022-02-19 at 12.41.29 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184351i0F349C0E7EE0B803/image-size/large?v=v2&px=999 "Screen Shot 2022-02-19 at 12.41.29 PM.png")**

**Error**:

![Screen Shot 2022-02-19 at 12.36.26 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184350i41DAB193136BC463/image-size/large?v=v2&px=999 "Screen Shot 2022-02-19 at 12.36.26 PM.png")

The project that it picks is correct, the issue keys that it is showing is correct but I keep receiving this error.


author: Stefan Salzl
body: As [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) already mentioned in the answer below:

The very first line of the audit log gives the information that the rule is limited to one project (single project rule). Therefore only issues within this project can be considered for further processing within the rule.

In case issues to be fetched/looked up exist in other projects the rule has to be a multi project or global rule. This can be configured via:

**Rule details --\> Scope**

Best  
Stefan


author: Abhishek_Ajmera
body: Yes thanks for the hint [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) and [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993)

I looked at this option of creating global rules, but does that mean that this rule will start applying to all the projects? That is something I don't want to do or own as almost every team/project we have in Jira uses jira differently.


author: Stefan Salzl
body: In general: the scope of the rule is than global, yes.

The rule can also be configured as a multi project rule including only several projects to which the rule should have access to.

> does that mean that this rule will start applying to all the projects

As said before: the scope applys then to all projects. In case the rule is not expected to be triggered from all projects activation/processing can be limited with a condition after the trigger (see screenshot)

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/184352i063ED34AF23A4D85/image-dimensions/384x143?v=v2 "image.png")

Hope this helps.

Best  
Stefan


author: Abhishek_Ajmera
body: I will give this a shot but it does not feel like at least my issue was project scope as I re-verified the test epic and the stories under that epic are all from the same project so theoretically I should not need a global rule.


author: Stefan Salzl
body: Might it be possible to see the whole error message? And if possible also the configuration lookupIssue action to find out what happens in the processing of the JQL (as it seems something is going wrong there).


author: Abhishek_Ajmera
body: Is there some way to see the whole error message other then the screenshot i sent above?

screenshot of the jql

![Screen Shot 2022-02-19 at 4.45.27 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184354iA9057FB453538FEA/image-size/large?v=v2&px=999 "Screen Shot 2022-02-19 at 4.45.27 PM.png")

And this is the screenshot of the edit issue after lookup

![Screen Shot 2022-02-19 at 4.44.06 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/184353iC9CFCEC17A20CCD6/image-size/large?v=v2&px=999 "Screen Shot 2022-02-19 at 4.44.06 PM.png")


author: Stefan Salzl
body: I meant the screenshot but clear readable?

To further analyse: could you please add 2 logging actions to your rule like the following screenshot, trigger the rule and send a screenshot of the audit rule?

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/184356iD2302140F44A6594/image-dimensions/189x257?v=v2 "image.png")

Best  
Stefan


author: Stefan Salzl
body: Hi [@Abhishek_Ajmera](/t5/user/viewprofilepage/user-id/4009097)

I could reproduce the behaviour. On my side this happens if the epic names contains of a quotation mark (").

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/184362i8D6B7B87B6A0B917/image-dimensions/397x89?v=v2 "image.png")


author: Abhishek_Ajmera
body: Thanks [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) I think my error is different, it says

"Custom Smart Value JQL Search: "("Epic Link" = "Epic Name: 1") AND (project in (19904))" - The option 'Epic Name: 1' for field 'Epic Link' does not exist."   

Also I double verified that neither the epic name nor the title contains any quotes. It does have a colon (:) in the name though.


author: Stefan Salzl
body: I checked a few special characters but not the colon.

In case your question is resolved please consider to mark the answer as accepted to mark the question as resolved and help other users who are in need of this information an looking for solution.


author: Abhishek_Ajmera
body: [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) i didn't mean that it was causing it, I removed that colon also from both the epic name and title but it is still the same error.


author: Stefan Salzl
body: Hi [@Abhishek_Ajmera](/t5/user/viewprofilepage/user-id/4009097) ,

for further analyse could you please configure/add ?logging action" as described in one of the previous replies?

![6BA51274-0A20-4F6A-95DA-A42D8B48DA01.png](https://community.atlassian.com/t5/image/serverpage/image-id/184936i91A0B5714D7D9550/image-size/large?v=v2&px=999 "6BA51274-0A20-4F6A-95DA-A42D8B48DA01.png")

And please if possible a screenshot of both the userStory and the expected epic?

Does this happen with other epics too or only with a specific one?

Best  
Stefan


author: Abhishek_Ajmera
body: Hi,  
please find the screenshots attached.

![Screen Shot 2022-02-22 at 4.28.06 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/185097i3FE27A58E0C02436/image-size/large?v=v2&px=999 "Screen Shot 2022-02-22 at 4.28.06 PM.png")![Screen Shot 2022-02-22 at 4.28.17 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/185098iAD73468DA09993A8/image-size/large?v=v2&px=999 "Screen Shot 2022-02-22 at 4.28.17 PM.png")![Screen Shot 2022-02-22 at 4.28.26 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/185099i9C0CD0D4DF385A41/image-size/large?v=v2&px=999 "Screen Shot 2022-02-22 at 4.28.26 PM.png")![Screen Shot 2022-02-22 at 4.28.36 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/185100iC4DEFCEEF44F91B4/image-size/large?v=v2&px=999 "Screen Shot 2022-02-22 at 4.28.36 PM.png")![Screen Shot 2022-02-22 at 4.32.59 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/185101i73DEB81438C23042/image-size/large?v=v2&px=999 "Screen Shot 2022-02-22 at 4.32.59 PM.png")


author: Stefan Salzl
body: Please also add thr screenshot of those issues from previous post (story and epic)


author: Fabian Lim
body: Hi [@Abhishek_Ajmera](/t5/user/viewprofilepage/user-id/4009097)

Take a look at this post: <https://community.atlassian.com/t5/Automation-articles/Jira-Automation-Sum-Up-Story-Points-Roundup-Initiatives-gt-Epics/ba-p/1928027>

Regards

comments: author: Abhishek_Ajmera
body: Thanks for quick response and thanks for this link, did not know that issue.Epic Name was also a smart value available. But still i see similar error, previously I was getting "The option "our project epic key" for field 'Epic Link' does not exist."

now I get "The option "our project Epic Name" for field 'Epic Link' does not exist."


author: Fabian Lim
body: Check if the stories in the epic come from the same project. If you are picking tickets from another project you will have to make it global.

Regards


author: Abhishek_Ajmera
body: [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) is there a specific way to look at the project details? From the breadcrumb at the top, both the epics and the stories in the epic are all part of the same project.

What do you mean when you say "you will have to make it global"

One thing to note is that the parent of the epic (an Initiative) is from a different project.


author: David Roy Morin
body: Any update on this I have the same issue