youngmon/atlassian-qna huggingface dataset:
Calculation with dates and numbers - Asset Automation
Asked by Maria Elena Lovato:

Hi, I'm trying to calculate a couple of attributes of an object type in the Asset plug in using dates and number.

I have two different type of calculation I need to do:

* difference of dates, so Date A- Date B = Number of days (21/08/2024 - 01/08/24 = 20)
* find a new date starting from Date A and adding a number of days (01/08/24 + 20 = 21/08/2024)

I don't know where to find infos on the language used in the automation from asset.

I also cannot use external stuff and other plug in from Atlassian Marketplace.


Answers:
author: Marc - Devoteam
body: Hi [@Maria Elena Lovato](/t5/user/viewprofilepage/user-id/5486393)

Check out this community article: [Calculate-months-between-two-dates](https://community.atlassian.com/t5/Jira-questions/Calculate-months-between-two-dates/qaq-p/2756296)

comments: author: Maria Elena Lovato
body: Hi Marc, my problem is this is not related to issues but to Asset, so I'm not quite sure how to use it in this context. Do I have to use the asset placeholders (e.g.: ${start date}) in the formula? How do I replace the "issue" in the formula, with "object"?


author: Marc - Devoteam
body: Hi [@Maria Elena Lovato](/t5/user/viewprofilepage/user-id/5486393)

You can't.

You can use smart values within AQL, but not the other way around.

You would require to have custom fields that show asset information, to use it in an automation as a calculation.


author: Maria Elena Lovato
body: So it's not possible to set up an automation which calculate something?


author: Marc - Devoteam
body: Hi [@Maria Elena Lovato](/t5/user/viewprofilepage/user-id/5486393)

Yes you can use automation for calculation, but only on number values stored in custom fields.

You are not able to directly use attribute values from assets in calculations, within an automation rule.

You would need a custom field of the type assets that uses the assets. Then create a variable that stores the numeric assets value, then you can use the variable as a smart value in a calculation


author: Maria Elena Lovato
body: And how do I create custom field whitin Asset?


author: Marc - Devoteam
body: Hi [@Maria Elena Lovato](/t5/user/viewprofilepage/user-id/5486393)

See the KB article here; [set-up-the-assets-object-field](https://support.atlassian.com/jira-service-management-cloud/docs/set-up-the-assets-object-field/)

But You will need a premium subscription to use the assets feature.

But I missed something, you are using an asset app from the marketplace, not the native assets option.

Then it is possible that this is not possible. Check the docs of the app if the app integrates with automation.


Tags: asset

asset-management

assets

automation

cloud

jira-service-management

jira-service-management-cloud
I am getting error when I run this JQL: parent in (filter("CCU Lakers feature));
Asked by weiqun.zhang:

I am getting error when I run this JQL: parent in (filter("CCU Lakers feature)); the error says filter(CCU Lakers feature) does not exist. but it is a valid filter


Answers:
author: Marc - Devoteam
body: Hi [@weiqun.zhang](/t5/user/viewprofilepage/user-id/5575144)

This is not possible in Jira ootb, you require a JQL extension app form this.

comments: author: weiqun.zhang
body: thanks, seems like it, seems the parent in or filter() are not supported.

what kind of JQL extension should I get?


author: Marc - Devoteam
body: Hi [@weiqun.zhang](/t5/user/viewprofilepage/user-id/5575144)

Check the marketplace.

I prefer JQL Search Extensions, but there are more JQL Tricks, etc..


Tags: cloud

jira-cloud
Error when changing the Target Start field
Asked by Alexandr:

![Errore Target Start.png](/t5/image/serverpage/image-id/343482iD495C470FC706297/image-size/large?v=v2&px=999 "Errore Target Start.png")![Target Start OK.png](/t5/image/serverpage/image-id/343481i6B608DA0886227AD/image-size/large?v=v2&px=999 "Target Start OK.png")I encounter an error when trying to change the value of the Target Start field by moving the slider: "Cannot change manual start date. Unable to change task Start Date ("Target start" field update error). Please check Jira configuration." If I manually change the field and select a date from the calendar, the error does not occur. How can I fix my issue?


Answers:
author: Stepan Kholodov _Tempo_
body: Hello [@Alexandr](/t5/user/viewprofilepage/user-id/5389682)   

Recently, there was a bug related to Target start/Target end dates fixed in Structure. Please try to upgrade both Structure \& Structure.Gantt to their latest versions and see if it helps. The fix was introduced in Structure 9.4.  

If you still get the error after this, please reach out to us directly at our [support portal](https://tempo-io.atlassian.net/servicedesk/customer/portal/6/group/1051).  

Best regards,  
Stepan  
Tempo (the Structure app vendor)


Tags: data-center

jira-data-center

structure
API Auth gives confusing results (python, request)
Asked by Simon K?nig:

Hello,

I am currently working on a simple Jira Api Class to use for coming API-Calls.

All I currently want is to create a module I can use to authenticate, check authentication and utilize to make GET, SET,.. and other basic API calls.

I wrote the Authentification Header as was suggested in <https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/>, but get confusing results.

My auth-header looks like this:  
*self._auth = HTTPBasicAuth(self._email, self._api_token)*  
which gives me a \<requests.auth.HTTPBasicAuth object at ...\>.  
To test my connection I am running this request:  
*response = requests.request(*  
*"GET",*  
*url,*  
*headers=self.header,*  
*auth= self.auth, timeout=100*  
*)*  
given the URL is  
*url = f"{str(self.base_url)}/rest/api/2/myself".*  
This function is working and returning a valid request json with my email, accountID and correct baseURL.  
So far so good.  
To make handling GET request simpler in the future I then proceed to write a funtion that would just make a GET request with given params and my authentification header using:

*url = f"{self.base_url}/rest/api/latest/{operation}"*  
*try:*  
*response = requests.request("GET",url,headers=self.header, params=params, timeout=200)*  
*response.raise_for_status()*  
*except requests.exceptions.Timeout as e:*  
*raise TimeoutError('Timeout Error while using GET Method') from e*  
**Now for my problem:**  
using *url =f**"{self.base_url}/rest/api/latest/{operation* *}* with *operation =**"issue/ISSUE-KEY"* I get only a 404 Error.  
When checking the URl in a browser I am getting the Issue.json as expected.  
Thats why I am thinking it might be an authentication problem.  
The User used is site-admin.  
In short: I can connect via API call to <https://mysite.net/rest/api/2/myself> but get a 404 Error on <https://mysite.net/rest/api/latest/issue/ISSUEKEY>, even though that url is (with the same user) valid to view in browser.  
Any help or redirect would be appreciated,  
Kind regards


Answers:
author: Simon K?nig
body: Found the Error.

Seting the Authentification once was not enaugh. I missed to set  
auth= self.auth  
in my request for my get function.

comments: author: Nathan Phillips
body: Hey [@Simon K?nig](/t5/user/viewprofilepage/user-id/4408131),

Thank you for reaching out the Atlassian Community!

Even more, thank you for following up to your own post and providing the resolution, this can be very useful and may help out other Atlassian product users.

Thank you!


Tags: api

authentication

cloud

jira-cloud

rest

rest-api
"Create retrospective" pop up is appearing even when automation is removed
Asked by David:

Dear Community,

In our Jira project there apparently are 2 automation rules: One that triggers a pop "do you want to create a retrospective document" whenever I close a sprint and another one which asks to move a ticket to done when all subtasks are done.

Both are annoying and not helpful at all.

I removed all Jira automations in the project and the global settings. Those 2 still remain.

Does anyone know how I can get rid of these pesky little fellows? I'm assuming it's a bug in Jira but I haven't found anything about this issue online. Every help is appreciated! :-)


Answers:
author: Shikha Verma
body: Hey [@David](/t5/user/viewprofilepage/user-id/4672634), it sounds like the automation you're encountering might not be traditional Jira Automation rules but rather built-in Jira features or third-party app functionalities that are triggering these prompts.   
- Check for Third-Party Apps or Plugins  
- Check Project Settings for Workflows (review any transitions that might include custom post-functions or triggers for these actions)  
- Clear Jira Cache and Restart Jira:


Tags: automation

cloud
Widget does not filter correctly
Asked by Adam Rozwadowski:

Hello!

In one of our JIRA projects, we use the WIDGET overlay. We would really like the users using it to be able to easily search for the right request, so we have labeled them with set abbreviations.

The problem is that when a user searches for a 3-letter abbreviation, WIDGET incorrectly shows the filtered word.

For example: filter "WTA" and nothing appears in the suggestions even though there is a REQUEST TYPE in the automation: "Invoices and Settlements( WWO WTA WJ2 )".  

If I type: "WWO" or "WJ2" it works.

I tried:

- renaming requests

- reset the widget

- reconfigure the automation steps

Nothing, unfortunately, helped  

![msedge_wxTyNkmmkA.png](/t5/image/serverpage/image-id/343466i8C28A132B384B47B/image-size/large?v=v2&px=999 "msedge_wxTyNkmmkA.png")![msedge_nfZaFdCzn8.png](/t5/image/serverpage/image-id/343464i77550730E1D09573/image-size/large?v=v2&px=999 "msedge_nfZaFdCzn8.png")![msedge_aKVUvXadIr.png](/t5/image/serverpage/image-id/343467iDE111658C67AEC63/image-size/large?v=v2&px=999 "msedge_aKVUvXadIr.png")  


Answers:
author: Anusha A
body: Hi Adam,

I have submitted a support ticket for you since this issue may require further investigation on our part. You should have received an email with the ticket details. Thank you for bringing this to our attention.

Regards,

Anusha A


Tags: cloud

jira-cloud
Error - couldn't load items
Asked by Lisa Beattie:

![Screenshot 2022-12-09 105931.png](/t5/image/serverpage/image-id/229706i38A8B7C39542D7AF/image-size/large?v=v2&px=999 "Screenshot 2022-12-09 105931.png")

This error comes up when I try to filter my **list** by **category.**

Related errors:

1. I cannot create a **Filter** based on **category**

2. I can't sort the **category** column from **Filters** page

Attempting to fix this:

1. I've tried refreshing - this error has been occurring for over 1 week

2. I've removed special characters from the Category drop list

2. It's nothing to do with my connection, everything else appears to be working fine

Anyone had a similar issue and been able to resolve it?

Thank you


Answers:
author: michael.gorbachep
body: having the same issue here. do you manage to find solution?


Tags: cloud
I have admin role, but I can't get project roles for project
Asked by ????? ??????:

Hi!  

I am trying to get project roles. I have admin role, but when i do **GET /rest/api/2/project/{projectIdOrKey}/role** I get error message:  
**errorMessages: \[ '?? ?? ?????? ????????????? ???????????? ????? ???????.' \]**(On en: You cannot edit the configuration of this project)

Please tell me how to fix the error.

Thank you so much


Answers:
author: Alex Koxaras _Relational_
body: Hi [@????? ??????](/t5/user/viewprofilepage/user-id/5097088) and welcome to the community,

Based on the REST API documentation you have to have:

* Administer Projects project permission for any project on the site or
* Administer Jira global permission.

I've tested on postman and I get a response. I would suggest that you have to check that the role that you have on the specific project, is a role you can administer the specific project.

Are you on a company managed project?

comments: author: ????? ??????
body: Indicated that my user is administrator atlassian


author: Alex Koxaras _Relational_
body: [@????? ??????](/t5/user/viewprofilepage/user-id/5097088) unfortunately "Administrator atlassian" is not a thing.

* Please provide a screenshot that you have the administrator role of the project
* Please provide a screenshot that the administrator role has the administer project permission
* If the above do not apply, I will take it that you are a Jira administrator.
* Please confirm that you are on a company managed project.


author: ????? ??????
body: How do I know if a user is a Project Administrator? My profile is the site administrator.


Tags: jira-cloud

rest-api
export issue data to excel
Asked by ncollins:

I have a project on Jira for preventative maintenance at work and I want to automate it to export issue data every time an issue is set to DONE so that the issue can be reused every time the maintenance is required and I can build up an external log of when maintenance was performed and any comments added to the issue at that time of service.

How can I do this with Jira automation?


Answers:
author: Levente Szabo _Midori_
body: While I think [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) 's questions are valid, I want to mention that Better Excel Automation does exactly this - on Jira Data Center (Server).

The problem is that automation extensions are not currently available for Jira Cloud. That's because Atlassian currently doesn't allow integrations for Automation for Jira Cloud.  

If you think this would be a useful feature for your team, please vote for the feature request in Atlassian's system: [https://jira.atlassian.com/browse/CLOUD-10966](https://jira.atlassian.com/browse/CLOUD-10966?)


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

That sounds like a very kludgy thing to do. Where are these spreadsheet lines going? Or probably more pertinently - where do they end up? What is the reporting on them? Why are your people looking at a spreadsheet instead of your issue tracker where you're tracking the work?


Tags: cloud

jira-work-management-cloud
unchecking checklist when issue is transitioned
Asked by ncollins:

i have a project set up for preventative maintenance at work and a set checklist to follow. how do i use automation to get the check list to reset when the issue is transitioned from DONE to TO DO?


Answers:
author: Trudy Claspill
body: Hello [@ncollins](/t5/user/viewprofilepage/user-id/5031799)

Welcome to the Atlassian community!

How are you creating your checklist?

Are you using the built-in Checkboxes custom field type, or some other method like a third party app?


Tags: cloud

jira-work-management-cloud
How to unlock the category field on issue level
Asked by Jeremy Schrijver:

Hi all,

I am relatively new working with Jira Work Management. We would like to make the category field of all issues in our JWM environment required, and add values beforehand for all users to choose from. Unfortunately, the category field on issue level is Locked? Does anyone know why and how to unlock it?

![MicrosoftTeams-image (3).png](/t5/image/serverpage/image-id/229366i21CA2F2017E0E9F7/image-size/large?v=v2&px=999 "MicrosoftTeams-image (3).png")

Thanks in advance!


Answers:
author: Trudy Claspill
body: Hello [@Jeremy Schrijver](/t5/user/viewprofilepage/user-id/5019682)

Welcome to the community.

You cannot unlock fields that show that LOCKED lozenge. Refer to this article:

<https://support.atlassian.com/jira-cloud-administration/docs/what-are-locked-custom-fields/>

You will not be able to make that field Required by modifying the Field Configuration. You can configure your workflow transitions to require that the field be filled in, and it will then be checked during each status change.

Only admins can add values to the Category field in Work Management project, so have you admins set the values after the project is newly created. The non-admin users will then have the selection list of value to choose from. That will have to be done for each project. Refer to

<https://support.atlassian.com/jira-work-management/docs/categorize-items-in-your-list-view/#Add-a-category>

comments: author: Jeremy Schrijver
body: Thanks for your help Trudy!


Tags: category

cloud

jira-work-management-cloud

lock
Jira Work Management Sales - forecast?
Asked by Melissa Law:

Hello,

We are using the sales pipeline function to track our pipelein from start to close, is there a option to track the revenue of these potential opportunities? I deall we would like to forecast the potential revenue as it moves through each stage, but I can't see how to configure this?


Answers:
author: John Funk
body: Hi Melissa,

Can you provide more information?

You can add a custom number type field to the project and screen. Then you could create some filters/reports around the field.


Tags: cloud

jira-work-management-cloud
how the jira work management connect with gitlab
Asked by Garrickshen:

Hi Jira,

Are there any instructions about the "jira work management" connect with gitlab, thanks


Answers:
author: Dave Mathijs
body: Hi [@Garrickshen](/t5/user/viewprofilepage/user-id/5070679) that is a functionality reserved to **Jira** **Software**.


Tags: cloud

jira-work-management-cloud
what features are provided by Itrack API's on top atlassian JIRA API's?
Asked by RagaMallika G:

what does Itrack do which Atlassian JIRA cant?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Probably nothing, if it's an issue tracker. But I can't find an issue tracker with that name, only a football team tracking system.

Could you explain your question some more please?
Can't Get Tasks to Rollup to Epic in List + Timeline View
Asked by Brandon Watts:

I'm trying to utilize the Project management template's list and timeline view to better showcase my projects and i'm having an issue where i can't get the tasks that are part of an epic to show as rolled up. Instead they are just other tasks. I've tried to filter by epic but that just shows epics, with nothing underneath. Any ideas?

![Screenshot 2022-12-02 at 10.45.06 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/228741iE593640B762B40DB/image-size/large?v=v2&px=999 "Screenshot 2022-12-02 at 10.45.06 AM.png")


Answers:
author: John Funk
body: Hi Brandon - Welcome to the Atlassian Community!

I suggest you vote for and follow this feature request:

<https://jira.atlassian.com/browse/JWMCLOUD-316>


author: Dan -minware-
body: Disclaimer: marketplace partner!

Hey [@Brandon Watts](/t5/user/viewprofilepage/user-id/5093082) -

Any specific objective with "better showcase my projects?" At minware we offer a predictive roadmap that rolls things up nicely -- ironically I don't have a screenshot available that shows the expanded nesting but below is an example.

Each grouping can be expanded to show subtasks and the "chunks" of time you see on each timeline will waterfall chronologically once expanded:

![minware capacity_epic.png](https://community.atlassian.com/t5/image/serverpage/image-id/228764i652BBC415DCD888F/image-size/large?v=v2&px=999 "minware capacity_epic.png")

It is a paid service but we offer a free trial if you want to check it out.

comments: author: Dan -minware-
body: Hey [@Brandon Watts](/t5/user/viewprofilepage/user-id/5093082) hope all is well! Curious if you were able to solve here?

Found a screenshot showing the sub-task level drill down in minware:

![minware - roadmap subtask grouping.png](https://community.atlassian.com/t5/image/serverpage/image-id/237676iF5A9C9CE856C8975/image-size/large?v=v2&px=999 "minware - roadmap subtask grouping.png")
Portfolio view of multiple projects?
Asked by Patrick Metzdorf:

So in the [Work Management page](https://www.atlassian.com/software/jira/work-management), it has this section where it shows you should be able to view the timelines of multiple projects:

![2022-12-01 22_28_36-Jira Work Management _ A friendly and powerful way to work.png](https://community.atlassian.com/t5/image/serverpage/image-id/228585iFC799FC5EA3B0BD5/image-size/large?v=v2&px=999 "2022-12-01 22_28_36-Jira Work Management _ A friendly and powerful way to work.png")

But for the life of me I can't find that anywhere in Jira Work Management.

Can anyone point me to where I can link those other projects and get this view above?

Many thanks!


Answers:
author: Mikael Sandberg
body: That screen is from [Advanced roadmap](https://www.atlassian.com/software/jira/features/roadmaps) and is showing that Jira Work Management and Jira Software can work together. In order to get access to Advanced roadmap you need subscribe to Jira Software Premium.

comments: author: Patrick Metzdorf
body: Ah. I guess that makes sense then, thank you.

We are only on the Standard plan. We'd have to double our costs just to get this :/


author: Dave Rosenlund _Trundl_
body: Hey, [@Patrick Metzdorf](/t5/user/viewprofilepage/user-id/2655832). Don't despair, yet. There are a number of Atlassian Marketplace apps that do similar things to Advance Roadmaps and that do not require you to upgrade to Jira Cloud Premium.

If this capability is important to you head over to the marketplace with [search for roadmapping tools](https://marketplace.atlassian.com/addons/app/jira/cloud-fortified?hosting=cloud&query=roadmapping).

Hope this helps,

-dave


Tags: advanced-roadmaps

timeline
Jira Service Management to Jira Work Management
Asked by Aldo:

hello!

I'd love to get some feedback from anyone who may have done something similar.. currently trying to get users to submit a ticket for an event planning request, to then move it into another project for management. I found this option below, but I'm curious to see if anyone else has used it in a similar matter or if there's another option. so far it's been pretty good.

<https://www.atlassian.com/software/jira/templates/event-planning>


Answers:
author: John Funk
body: Hi Aldo,

Yes, I have done this a lot. I use Jira Work Management's easy form creation for intake of new work. Then I have an automation rule that creates or clones the JMW issue into a Jira Software project.


Tags: jira-service-management
How can I give permission to view, but NOT edit the Due Date?
Asked by Mike Willyoung:

It appears that they come together. I would like team members to see when something is due without being able to change that.  

<br />

![Screen Shot 2022-11-29 at 12.38.09 PM.png](/t5/image/serverpage/image-id/228158i97E083855F069AC0/image-size/large?v=v2&px=999 "Screen Shot 2022-11-29 at 12.38.09 PM.png")


Answers:
author: Luis Machado
body: Hi [@Mike Willyoung](/t5/user/viewprofilepage/user-id/4572966)

It's been my experience that the Schedule Issues permission gives you the ability to edit the Due Date but the Browse Issues permission lets you see it. Have you tried just granting the browse permission only and not the Schedule Issues permission?

comments: author: Mike Willyoung
body: Hi Luis. Yes, it appears to hide the "due date" field for those users.


Tags: cloud