The Revenue's own information suggests that years service in the State are only used in the calculation, so they may be following their own guidelines, and possibly even following the legislation to the letter of the law.
However, if you are being treated less favourably because of your residence and/or employment in another EU state than someone who was resident/working in Ireland, then this may be in breach of EU law and could be challenged.
You should first of all ask them to set out the policy or legislation that disqualifies your service in UK, and then set out your position to them, say that you are being treated less favourably and ask them to disapply any policy or legislation that is responsible for this treatment. If they refuse, then you would have to appeal the decision.