rtcclientownedBy返回用户ID而不是电子邮件地址

发布于 2025-01-10 00:12:36 字数 1135 浏览 1 评论 0原文

我正在使用 Python 包 rtclcient (v0.6.0) 从工作项获取信息。 我从 RTC 工作项查询的一些属性包括:

returned_properties_list = [
    "rtc_cm:modifiedBy",
    "dc:modified",
    "rtc_cm:contextId",
    "dc:subject",
    "oslc_cm:priority",
    "dc:creator",
    "rtc_cm:due",
    "rtc_cm:estimate",
    "rtc_cm:correctedEstimate",
    "rtc_cm:timeSpent",
    "rtc_cm:startDate",
    "dc:created",
    "rtc_cm:resolvedBy",
    "rtc_cm:plannedFor",
    
    "rtc_cm:ownedBy",
]

当这些项的查询完成并检查返回的变量时,我注意到“ownedBy”值是用户的 ID,而不是他们的电子邮件地址。 输入图片此处描述如果我查看 raw_data['rtc_cm:ownedBy']['@rdf:resource'] 的值,它是一个指向该用户个人资料的链接。

在个人资料上,我可以看到作为“ownedBy”值接收的相同用户 ID。 输入图片此处描述个人资料上还有用户的电子邮件地址。这个电子邮件地址值是我需要的,但我似乎找不到使用 rtcclient python 包查询该值的方法。

我尝试将 "rtc_cm:emailAddress" 添加到我的查询属性中,但没有成功,

任何人都可以帮助我使用 rtcclient 包获取 RTC 票证的ownedBy 用户电子邮件地址吗?谢谢

I am using the Python package rtclcient (v0.6.0) to get info from work item.
Some of the properties I am querying from my RTC work item include:

returned_properties_list = [
    "rtc_cm:modifiedBy",
    "dc:modified",
    "rtc_cm:contextId",
    "dc:subject",
    "oslc_cm:priority",
    "dc:creator",
    "rtc_cm:due",
    "rtc_cm:estimate",
    "rtc_cm:correctedEstimate",
    "rtc_cm:timeSpent",
    "rtc_cm:startDate",
    "dc:created",
    "rtc_cm:resolvedBy",
    "rtc_cm:plannedFor",
    
    "rtc_cm:ownedBy",
]

When the query for these items finish and I examine the returned variables, I notice that the 'ownedBy' value is the user's id, not their email address.
enter image description here
If I look at the value of raw_data['rtc_cm:ownedBy']['@rdf:resource'] it is a link which goes to that user's profile.

On the profile I can see the same User ID which is being recieved as the 'ownedBy' value.
enter image description here
Also on the profile is the User's E-mail Address. This email address value is what I need, but I can't seem to find a way to query for this value using the rtcclient python package.

I've tried adding "rtc_cm:emailAddress" to my query properties but no luck,

Can anyone help me get the ownedBy user email address for a RTC ticket using the rtcclient package? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

路弥 2025-01-17 00:12:36

通过克隆 rtcclient 存储库并添加我自己的自定义函数 getUserEmail 来修复

fixed by cloning the rtcclient repo, and adding my own custom function getUserEmail

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文